From 3a182c20b144c4f45f48c6512e9351ea5746cd3d Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Wed, 6 Jun 2007 20:03:35 +0000 Subject: [PATCH] Plugin_Stop now works for event hooks --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40896 --- core/EventManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/EventManager.cpp b/core/EventManager.cpp index bba03d07..3f22196c 100644 --- a/core/EventManager.cpp +++ b/core/EventManager.cpp @@ -164,7 +164,7 @@ EventHookError EventManager::HookEvent(const char *name, IPluginFunction *pFunct if (mode == EventHookMode_Pre) { /* Create forward for a pre hook */ - pHook->pPreHook = g_Forwards.CreateForwardEx(NULL, ET_Event, 3, GAMEEVENT_PARAMS); + pHook->pPreHook = g_Forwards.CreateForwardEx(NULL, ET_Hook, 3, GAMEEVENT_PARAMS); /* Add to forward list */ pHook->pPreHook->AddFunction(pFunction); } else {