From 335227c095e28ce964f42cfab0d0c20ea03269a3 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sun, 15 Oct 2006 07:39:16 +0000 Subject: [PATCH] Nothing is pushed when lua_next() returns 0. --- stepmania/src/LuaManager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/LuaManager.h b/stepmania/src/LuaManager.h index 1fedda41d9..5a7397598e 100644 --- a/stepmania/src/LuaManager.h +++ b/stepmania/src/LuaManager.h @@ -145,7 +145,7 @@ namespace LuaHelpers #define FOREACH_LUATABLE(L,index) \ for( const int UNIQUE_NAME(tab) = LuaHelpers::AbsIndex(L,index), \ UNIQUE_NAME(top) = (lua_pushnil(L),lua_gettop(L)); \ - ( lua_next(L, UNIQUE_NAME(tab)) || (lua_pop(L,1),false) ) && (lua_pushvalue(L,-2),true); \ + lua_next(L, UNIQUE_NAME(tab)) && (lua_pushvalue(L,-2),true); \ lua_settop(L,UNIQUE_NAME(top)) )