Skip to content

Commit 4d6f4bf

Browse files
committed
Fixed a debug assertion when stopping a Lua VM
1 parent 34bea4d commit 4d6f4bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Server/mods/deathmatch/logic/lua/CLuaMain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,8 @@ void CLuaMain::UnloadScript ( void )
384384
// End the lua vm
385385
if ( m_luaVM )
386386
{
387+
CLuaFunctionRef::RemoveLuaFunctionRefsForVM(m_luaVM);
387388
m_pLuaManager->OnLuaMainCloseVM( this, m_luaVM );
388-
CLuaFunctionRef::RemoveLuaFunctionRefsForVM( m_luaVM );
389389
lua_close( m_luaVM );
390390
m_luaVM = NULL;
391391
}

0 commit comments

Comments
 (0)