mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
ModSystem: properly purge and delete all mods on destruction
This commit is contained in:
parent
10161f5f9e
commit
5bfa34d016
@ -26,10 +26,7 @@ static ConVar modsystem_debug("modsystem_debug", "0", FCVAR_RELEASE, "Debug the
|
||||
CModSystem::~CModSystem()
|
||||
{
|
||||
// clear all allocated mod instances.
|
||||
FOR_EACH_VEC(m_ModList, i)
|
||||
{
|
||||
delete m_ModList.Element(i);
|
||||
}
|
||||
m_ModList.PurgeAndDeleteElements();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user