Skip to content

Commit

Permalink
SDKHooks: Reset global hookid when unhooking in SH. (#916)
Browse files Browse the repository at this point in the history
Fixes #912
  • Loading branch information
KyleSanderson committed Oct 28, 2018
1 parent db99254 commit cb8d92e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extensions/sdkhooks/extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ void SDKHooks::SDK_OnAllLoaded()
if (hook != 0) \
{ \
SH_REMOVE_HOOK_ID(hook); \
hook = 0; \
}

void SDKHooks::SDK_OnUnload()
Expand Down

0 comments on commit cb8d92e

Please sign in to comment.