We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57dfd05 commit 3a00046Copy full SHA for 3a00046
Client/mods/deathmatch/logic/lua/CLuaManager.cpp
@@ -68,14 +68,15 @@ bool CLuaManager::RemoveVirtualMachine(CLuaMain* pLuaMain)
68
m_pEvents->RemoveAllEvents(pLuaMain);
69
m_pRegisteredCommands->CleanUpForVM(pLuaMain);
70
71
+ // Remove it from our list
72
+ m_virtualMachines.remove(pLuaMain);
73
+
74
// Delete it unless it is already
75
if (!pLuaMain->BeingDeleted())
76
{
77
delete pLuaMain;
78
}
79
- // Remove it from our list
- m_virtualMachines.remove(pLuaMain);
80
return true;
81
82
0 commit comments