lua cleanup
This commit is contained in:
@@ -150,7 +150,7 @@ void LuaManager::SetGlobal( const CString &sName )
|
|||||||
static int LuaPanic( lua_State *L )
|
static int LuaPanic( lua_State *L )
|
||||||
{
|
{
|
||||||
CString sErr;
|
CString sErr;
|
||||||
LuaHelpers::PopStack( sErr, NULL );
|
LuaHelpers::PopStack( sErr, L );
|
||||||
|
|
||||||
RageException::Throw( "%s", sErr.c_str() );
|
RageException::Throw( "%s", sErr.c_str() );
|
||||||
}
|
}
|
||||||
@@ -295,7 +295,7 @@ bool LuaManager::RunScript( const CString &sScript, const CString &sName, CStrin
|
|||||||
|
|
||||||
if( ret )
|
if( ret )
|
||||||
{
|
{
|
||||||
LuaHelpers::PopStack( sError, NULL );
|
LuaHelpers::PopStack( sError, L );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -305,7 +305,7 @@ bool LuaManager::RunScript( const CString &sScript, const CString &sName, CStrin
|
|||||||
int ret = lua_pcall( L, 0, iReturnValues, 0 );
|
int ret = lua_pcall( L, 0, iReturnValues, 0 );
|
||||||
if( ret )
|
if( ret )
|
||||||
{
|
{
|
||||||
LuaHelpers::PopStack( sError, NULL );
|
LuaHelpers::PopStack( sError, L );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user