mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 22:35:37 +03:00
Fix CFrameActionMngr not being cleared
This commit is contained in:
parent
27f451a868
commit
3fb70aa244
@ -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;
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user