Delay freeing hook manager one frame just in case the entity is deleted while the hook is still on the stack.

This commit is contained in:
Dr!fter
2016-08-26 19:26:52 -04:00
parent bfd6abfb6c
commit b3fb8cc8de
3 changed files with 18 additions and 2 deletions
+1
View File
@@ -364,6 +364,7 @@ public:
DHooksCallback *callback;
IPluginFunction *remove_callback;
SourceHook::HookManagerPubFunc pManager;
bool bDelete;
};
size_t GetStackArgsSize(DHooksCallback *dg);