experimental fix for new stats sync code

This commit is contained in:
David Anderson
2006-02-28 09:43:20 +00:00
parent d4c2bf154f
commit 628d38df7a
4 changed files with 125 additions and 3 deletions

View File

@ -476,6 +476,8 @@ void C_ServerDeactivate()
RETURN_META(MRES_IGNORED);
}
extern CVector<cell *> g_hudsync;
// After all clear whole AMX configuration
// However leave AMX modules which are loaded only once
void C_ServerDeactivate_Post()
@ -507,6 +509,10 @@ void C_ServerDeactivate_Post()
g_langMngr.SaveCache(build_pathname_r(file, sizeof(file) - 1, "%s/dictionary.cache", get_localinfo("amxx_datadir", "addons/amxmodx/data")));
g_langMngr.Clear();
for (unsigned int i=0; i<g_hudsync.size(); i++)
delete [] g_hudsync[i];
g_hudsync.clear();
// last memreport
#ifdef MEMORY_TEST
if (g_memreport_enabled)