fixed registerfuncex never actually registering
fixed requestfunc returning null when not querying
This commit is contained in:
parent
3a7d291513
commit
5522778aed
|
@ -1670,6 +1670,8 @@ void *MNF_RegisterFunctionEx(void *pfn, const char *description)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MNF_RegisterFunction(pfn, description);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1865,11 +1867,6 @@ void *Module_ReqFnptr(const char *funcName)
|
||||||
// code
|
// code
|
||||||
// ^---- really? wow!
|
// ^---- really? wow!
|
||||||
|
|
||||||
if (!g_CurrentlyCalledModule)
|
|
||||||
{
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
g_LastRequestedFunc = funcName;
|
g_LastRequestedFunc = funcName;
|
||||||
|
|
||||||
CList<func_s, const char *>::iterator iter;
|
CList<func_s, const char *>::iterator iter;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user