From 5522778aed8ed1df2bbc00c0125efdc5766a4ae0 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 3 Jun 2006 23:14:09 +0000 Subject: [PATCH] fixed registerfuncex never actually registering fixed requestfunc returning null when not querying --- amxmodx/modules.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/amxmodx/modules.cpp b/amxmodx/modules.cpp index 86fde976..b199e972 100755 --- a/amxmodx/modules.cpp +++ b/amxmodx/modules.cpp @@ -1670,6 +1670,8 @@ void *MNF_RegisterFunctionEx(void *pfn, const char *description) } } + MNF_RegisterFunction(pfn, description); + return NULL; } @@ -1865,11 +1867,6 @@ void *Module_ReqFnptr(const char *funcName) // code // ^---- really? wow! - if (!g_CurrentlyCalledModule) - { - return NULL; - } - g_LastRequestedFunc = funcName; CList::iterator iter;