From f715b14bb047bb5b9af31eb00f21b2183c2dea72 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 15 Jun 2005 08:28:55 +0000 Subject: [PATCH] lua cleanup --- stepmania/src/LuaManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/LuaManager.cpp b/stepmania/src/LuaManager.cpp index e2e41b75ff..8361cbc3f4 100644 --- a/stepmania/src/LuaManager.cpp +++ b/stepmania/src/LuaManager.cpp @@ -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; } }