diff --git a/amxmodx/meta_api.cpp b/amxmodx/meta_api.cpp index abe289e2..32c81cfd 100755 --- a/amxmodx/meta_api.cpp +++ b/amxmodx/meta_api.cpp @@ -751,8 +751,6 @@ void C_ServerDeactivate_Post() modules_callPluginsUnloading(); - detachReloadModules(); - CoreCfg.Clear(); g_auth.clear(); @@ -776,6 +774,8 @@ void C_ServerDeactivate_Post() ClearPluginLibraries(); modules_callPluginsUnloaded(); + detachReloadModules(); + ClearMessages(); // Flush the dynamic admins list