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 34bea4d commit 4d6f4bfCopy full SHA for 4d6f4bf
Server/mods/deathmatch/logic/lua/CLuaMain.cpp
@@ -384,8 +384,8 @@ void CLuaMain::UnloadScript ( void )
384
// End the lua vm
385
if ( m_luaVM )
386
{
387
+ CLuaFunctionRef::RemoveLuaFunctionRefsForVM(m_luaVM);
388
m_pLuaManager->OnLuaMainCloseVM( this, m_luaVM );
- CLuaFunctionRef::RemoveLuaFunctionRefsForVM( m_luaVM );
389
lua_close( m_luaVM );
390
m_luaVM = NULL;
391
}
0 commit comments