Fixed amb289 - Crash on SourceMod shutdown when hooking events as post in Linux.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40798
This commit is contained in:
Scott Ehlert 2007-05-14 06:45:27 +00:00
parent 2af178229d
commit 663906c60e

View File

@ -345,7 +345,7 @@ bool EventManager::OnFireEvent(IGameEvent *pEvent, bool bDontBroadcast)
if (pForward)
{
EventInfo info = {pEvent, false};
EventInfo info = { pEvent, NULL };
Handle_t hndl = g_HandleSys.CreateHandle(m_EventType, &info, NULL, g_pCoreIdent, NULL);
pForward->PushCell(hndl);
@ -389,11 +389,10 @@ bool EventManager::OnFireEvent_Post(IGameEvent *pEvent, bool bDontBroadcast)
if (pForward)
{
EventInfo info = { pHook->pEventCopy, NULL };
if (pHook->postCopy)
{
pEventCopy = pHook->pEventCopy;
EventInfo info = {pEventCopy, false};
hndl = g_HandleSys.CreateHandle(m_EventType, &info, NULL, g_pCoreIdent, NULL);
pForward->PushCell(hndl);