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; } }