From 3783e34a709de5f6666fd25aca164b0cd51e4db1 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 29 Mar 2006 22:42:03 +0000 Subject: [PATCH] Fixed a bug where handlers wouldn't work if they were in the 0th slot --- amxmodx/debugger.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/amxmodx/debugger.cpp b/amxmodx/debugger.cpp index 3714b958..f57aec82 100755 --- a/amxmodx/debugger.cpp +++ b/amxmodx/debugger.cpp @@ -647,7 +647,7 @@ int Handler::SetErrorHandler(const char *function) error = amx_FindPublic(m_pAmx, function, &m_iErrFunc); - if (error != AMX_ERR_NONE && m_iErrFunc < 1) + if (error != AMX_ERR_NONE && m_iErrFunc < 0) m_iErrFunc = -1; return error; @@ -659,7 +659,7 @@ int Handler::SetModuleFilter(const char *function) error = amx_FindPublic(m_pAmx, function, &m_iModFunc); - if (error != AMX_ERR_NONE && m_iModFunc < 1) + if (error != AMX_ERR_NONE && m_iModFunc < 0) m_iModFunc = -1; return error; @@ -695,7 +695,7 @@ const char *Handler::GetLastMsg() int Handler::HandleModule(const char *module) { - if (m_iModFunc < 1) + if (m_iModFunc < 0) return 0; /**