Make sure we always release Lua lock
I have a sneaking suspicion that this also magically fixes memory cards on Linux.
This commit is contained in:
@@ -238,6 +238,7 @@ void ActorFrame::DrawPrimitives()
|
||||
m_DrawFunction.PushSelf( L );
|
||||
if( lua_isnil(L, -1) )
|
||||
{
|
||||
LUA->Release(L);
|
||||
LuaHelpers::ReportScriptErrorFmt( "Error compiling DrawFunction" );
|
||||
return;
|
||||
}
|
||||
@@ -487,6 +488,7 @@ void ActorFrame::UpdateInternal( float fDeltaTime )
|
||||
m_UpdateFunction.PushSelf( L );
|
||||
if( lua_isnil(L, -1) )
|
||||
{
|
||||
LUA->Release(L);
|
||||
LuaHelpers::ReportScriptErrorFmt( "Error compiling UpdateFunction" );
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user