SDKHooks: Reset global hookid when unhooking in SH. (#916)

Fixes https://github.com/alliedmodders/sourcemod/issues/912
This commit is contained in:
Kyle Sanderson 2018-10-28 11:06:57 -07:00 committed by GitHub
parent db9925493a
commit cb8d92edeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -328,6 +328,7 @@ void SDKHooks::SDK_OnAllLoaded()
if (hook != 0) \
{ \
SH_REMOVE_HOOK_ID(hook); \
hook = 0; \
}
void SDKHooks::SDK_OnUnload()