From 33a4b55076ad059a10c0d69ef58e36351bd8ca59 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 11 Oct 2006 04:52:22 +0000 Subject: [PATCH] fix stack imbalance on error; RunExpression does this --- stepmania/src/XmlFileUtil.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/stepmania/src/XmlFileUtil.cpp b/stepmania/src/XmlFileUtil.cpp index 68279c1ef4..1c0fca3aad 100644 --- a/stepmania/src/XmlFileUtil.cpp +++ b/stepmania/src/XmlFileUtil.cpp @@ -585,12 +585,7 @@ namespace if( EndsWith(sName, "Command") && sExpression.size() > 0 && sExpression[0] == '%' ) { sExpression.erase( 0, 1 ); - if( !LuaHelpers::RunExpression(L, sExpression, sFile) ) - { - /* Compiling or running failed. An error was already logged; just push a dummy - * return value. */ - lua_pushnil( L ); - } + LuaHelpers::RunExpression( L, sExpression, sFile ); } else if( EndsWith(sName, "Command") && (sExpression.size() == 0 || sExpression[0] != '%') ) { @@ -604,12 +599,7 @@ namespace } else { - if( !LuaHelpers::RunExpression(L, sExpression, sFile) ) - { - /* Compiling or running failed. An error was already logged; just push a dummy - * return value. */ - lua_pushnil( L ); - } + LuaHelpers::RunExpression( L, sExpression, sFile ); } delete pValue;