Added more debugging info to case where CForwardMngr::m_PreparedArrays is >= (max params num)

This commit is contained in:
Pavol Marko 2004-10-02 08:11:33 +00:00
parent 5a5ff6d8ea
commit 06f61cf92a

View File

@ -504,7 +504,11 @@ cell CForwardMngr::prepareArray(void *ptr, unsigned int size, ForwardArrayElemTy
{
if (m_TmpArraysNum >= FORWARD_MAX_PARAMS)
{
AMXXLOG_Log("[AMXX] Forwards with more than 32 parameters are not supported.");
#ifdef MEMORY_TEST
m_validateAllAllocUnits();
#endif // MEMORY_TEST
AMXXLOG_Log("[AMXX] Forwards with more than 32 parameters are not supported (tried to prepare array # %d).", m_TmpArraysNum + 1);
m_TmpArraysNum = 0;
return -1;
}
m_TmpArrays[m_TmpArraysNum].ptr = ptr;