Possible fix for forward unregister bug
This commit is contained in:
parent
a313c5b95b
commit
1c3a871831
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user