Fix: fakemeta hook not being unregistered (#483)

This commit is contained in:
IgnacioFDM authored and Vincent Herbet committed 2018-03-09 19:39:14 +01:00
1 parent 7c4688f557
commit 2559fcf00a
1 file changed
+5
+5
View File
@@ -107,6 +107,11 @@ void OnAmxxDetach()
ConfigManager->CloseGameConfigFile(CommonConfig);
ConfigManager->CloseGameConfigFile(GamerulesConfig);
if (HasRegameDll)
{
ReGameHookchains->InstallGameRules()->unregisterHook(InstallGameRules);
}
while (!g_FreeTRs.empty())
{
delete g_FreeTRs.front();