Fix CFrameActionMngr not being cleared

This commit is contained in:
Th3-822 2023-03-19 16:44:16 -04:00
parent 27f451a868
commit 3fb70aa244
2 changed files with 12 additions and 0 deletions

View File

@ -53,6 +53,15 @@ public:
} }
} }
void clear()
{
int count = m_requestedFrames.length();
while (count--)
{
m_requestedFrames.popFront();
}
}
private: private:
ke::Deque<ke::AutoPtr<CFrameAction>> m_requestedFrames; ke::Deque<ke::AutoPtr<CFrameAction>> m_requestedFrames;

View File

@ -393,6 +393,7 @@ int C_Spawn(edict_t *pent)
} }
g_frameActionMngr.clear();
g_forwards.clear(); g_forwards.clear();
g_log.MapChange(); g_log.MapChange();
@ -771,6 +772,7 @@ void C_ServerDeactivate_Post()
g_forcegeneric.clear(); g_forcegeneric.clear();
g_grenades.clear(); g_grenades.clear();
g_tasksMngr.clear(); g_tasksMngr.clear();
g_frameActionMngr.clear();
g_forwards.clear(); g_forwards.clear();
g_logevents.clearLogEvents(); g_logevents.clearLogEvents();
g_events.clearEvents(); g_events.clearEvents();
@ -1731,6 +1733,7 @@ C_DLLEXPORT int Meta_Detach(PLUG_LOADTIME now, PL_UNLOAD_REASON reason)
modules_callPluginsUnloading(); modules_callPluginsUnloading();
g_auth.clear(); g_auth.clear();
g_frameActionMngr.clear();
g_forwards.clear(); g_forwards.clear();
g_commands.clear(); g_commands.clear();
g_forcemodels.clear(); g_forcemodels.clear();