lua cleanup

This commit is contained in:
Glenn Maynard
2005-06-15 08:28:55 +00:00
parent a88e37e7d6
commit f715b14bb0
+3 -3
View File
@@ -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;
} }
} }