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