another bugfix

This commit is contained in:
Pavol Marko 2004-03-11 13:48:57 +00:00
parent 4656bb246e
commit d47ed6c48c

View File

@ -142,6 +142,7 @@ EventsMngr::ClEvent* EventsMngr::registerEvent(CPluginMngr::CPlugin* plugin, int
void EventsMngr::parserInit(int msg_type, float* timer, CPlayer* pPlayer, int index) void EventsMngr::parserInit(int msg_type, float* timer, CPlayer* pPlayer, int index)
{ {
if (msg_type < 0 || msg_type > MAX_AMX_REG_MSG) if (msg_type < 0 || msg_type > MAX_AMX_REG_MSG)
return; return;
@ -199,7 +200,9 @@ void EventsMngr::parserInit(int msg_type, float* timer, CPlayer* pPlayer, int in
m_ParseFun = &m_Events[msg_type]; m_ParseFun = &m_Events[msg_type];
} }
else else
{
m_ParseFun = NULL; m_ParseFun = NULL;
}
} }
void EventsMngr::parseValue(int iValue) void EventsMngr::parseValue(int iValue)
@ -246,6 +249,7 @@ void EventsMngr::parseValue(int iValue)
if (skip) if (skip)
continue; continue;
(*iter)->m_Done = true; (*iter)->m_Done = true;
} }
} }