diff --git a/modules/fakemeta/fakemeta_amxx.cpp b/modules/fakemeta/fakemeta_amxx.cpp index d27ed422..ab8130f4 100644 --- a/modules/fakemeta/fakemeta_amxx.cpp +++ b/modules/fakemeta/fakemeta_amxx.cpp @@ -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();