Possible fix for forward unregister bug

This commit is contained in:
David Anderson 2004-09-08 21:43:50 +00:00
parent a313c5b95b
commit 1c3a871831

View File

@ -22,7 +22,7 @@ void EngineError(AMX *amx, char *fmt, ...)
MF_RaiseAmxError(amx, AMX_ERR_NATIVE);
}
void OnAmxxDetach()
void ClearHooks()
{
register unsigned int i = 0;
for (i=0; i<256; i++) {
@ -228,6 +228,8 @@ void ServerDeactivate()
g_pFunctionTable->pfnStartFrame=NULL; // "server_frame","ServerFrame"
g_pFunctionTable->pfnTouch=NULL; // "pfn_touch","vexd_pfntouch"
ClearHooks();
RETURN_META(MRES_IGNORED);
}