From 06f61cf92a4590dc3263fa9c1198c2159a9ad10b Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Sat, 2 Oct 2004 08:11:33 +0000 Subject: [PATCH] Added more debugging info to case where CForwardMngr::m_PreparedArrays is >= (max params num) --- amxmodx/CForward.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/amxmodx/CForward.cpp b/amxmodx/CForward.cpp index fc758b7a..57260fdc 100755 --- a/amxmodx/CForward.cpp +++ b/amxmodx/CForward.cpp @@ -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;