From 7f43d744e906b1a620c73cd3ca2c40575f88cb94 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 25 Apr 2005 09:42:54 +0000 Subject: [PATCH] fix pop --- 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 ab176761cd..5d02560b04 100644 --- a/stepmania/src/LuaManager.cpp +++ b/stepmania/src/LuaManager.cpp @@ -312,7 +312,7 @@ bool LuaManager::RunExpressionB( const CString &str ) RageException::Throw( "result is a function; did you forget \"()\"?" ); bool result = !!lua_toboolean( L, -1 ); - lua_pop( L, -1 ); + lua_pop( L, 1 ); return result; } @@ -327,7 +327,7 @@ float LuaManager::RunExpressionF( const CString &str ) RageException::Throw( "result is a function; did you forget \"()\"?" ); float result = (float) lua_tonumber( L, -1 ); - lua_pop( L, -1 ); + lua_pop( L, 1 ); return result; } @@ -347,7 +347,7 @@ bool LuaManager::RunExpressionS( const CString &str, CString &sOut ) RageException::Throw( "result is a function; did you forget \"()\"?" ); sOut = lua_tostring( L, -1 ); - lua_pop( L, -1 ); + lua_pop( L, 1 ); return true; }