diff --git a/core/EventManager.cpp b/core/EventManager.cpp index 587a20d5..91cde171 100644 --- a/core/EventManager.cpp +++ b/core/EventManager.cpp @@ -301,7 +301,7 @@ EventInfo *EventManager::CreateEvent(IPluginContext *pContext, const char *name) return NULL; } -void EventManager::FireEvent(IPluginContext *pContext, EventInfo *pInfo, int flags, bool bDontBroadcast) +void EventManager::FireEvent(EventInfo *pInfo, int flags, bool bDontBroadcast) { /* Should SourceMod plugins be notified of this event? */ m_NotifyPlugins = (flags & EVENT_PASSTHRU_ALL) ? true : false; diff --git a/core/EventManager.h b/core/EventManager.h index 360a9201..8e91bc86 100644 --- a/core/EventManager.h +++ b/core/EventManager.h @@ -94,7 +94,7 @@ public: EventHookError HookEvent(const char *name, IPluginFunction *pFunction, EventHookMode mode=EventHookMode_Post); EventHookError UnhookEvent(const char *name, IPluginFunction *pFunction, EventHookMode mode=EventHookMode_Post); EventInfo *CreateEvent(IPluginContext *pContext, const char *name); - void FireEvent(IPluginContext *pContext, EventInfo *pInfo, int flags=0, bool bDontBroadcast=false); + void FireEvent(EventInfo *pInfo, int flags=0, bool bDontBroadcast=false); private: // IGameEventManager2 hooks bool OnFireEvent(IGameEvent *pEvent, bool bDontBroadcast); bool OnFireEvent_Post(IGameEvent *pEvent, bool bDontBroadcast); diff --git a/core/smn_events.cpp b/core/smn_events.cpp index 7e8814e9..cc35a804 100644 --- a/core/smn_events.cpp +++ b/core/smn_events.cpp @@ -98,7 +98,7 @@ static cell_t sm_FireEvent(IPluginContext *pContext, const cell_t *params) return pContext->ThrowNativeError("Game event \"%s\" could not be fired because it was not created by this plugin", pInfo->pEvent->GetName()); } - g_EventManager.FireEvent(pContext, pInfo, params[2], params[3] ? true : false); + g_EventManager.FireEvent(pInfo, params[2], params[3] ? true : false); /* Free handle on game event */ HandleSecurity sec = {pContext->GetIdentity(), g_pCoreIdent};