Fix: fakemeta hook not being unregistered (#483)

This commit is contained in:
IgnacioFDM 2018-03-09 15:39:14 -03:00 committed by Vincent Herbet
parent 7c4688f557
commit 2559fcf00a

View File

@ -107,6 +107,11 @@ void OnAmxxDetach()
ConfigManager->CloseGameConfigFile(CommonConfig); ConfigManager->CloseGameConfigFile(CommonConfig);
ConfigManager->CloseGameConfigFile(GamerulesConfig); ConfigManager->CloseGameConfigFile(GamerulesConfig);
if (HasRegameDll)
{
ReGameHookchains->InstallGameRules()->unregisterHook(InstallGameRules);
}
while (!g_FreeTRs.empty()) while (!g_FreeTRs.empty())
{ {
delete g_FreeTRs.front(); delete g_FreeTRs.front();