SDKHooks: Reset global hookid when unhooking in SH. (#916)
Fixes https://github.com/alliedmodders/sourcemod/issues/912
This commit is contained in:
parent
db9925493a
commit
cb8d92edeb
@ -328,6 +328,7 @@ void SDKHooks::SDK_OnAllLoaded()
|
||||
if (hook != 0) \
|
||||
{ \
|
||||
SH_REMOVE_HOOK_ID(hook); \
|
||||
hook = 0; \
|
||||
}
|
||||
|
||||
void SDKHooks::SDK_OnUnload()
|
||||
|
Loading…
Reference in New Issue
Block a user