From 5762f44c3636a6caca8866c4786d2f48f0eb376b Mon Sep 17 00:00:00 2001 From: "Ben \"root\" Anderson" Date: Thu, 24 Oct 2013 20:02:08 -0500 Subject: [PATCH] Someone missed a (SM_)UNIQUE_NAME and it didn't matter for the longest time because UNIQUE_NAME wasn't doing what it's supposed to --- src/LuaManager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LuaManager.h b/src/LuaManager.h index fe5fd7e435..a2ff70af13 100644 --- a/src/LuaManager.h +++ b/src/LuaManager.h @@ -181,7 +181,7 @@ for( const int SM_UNIQUE_NAME(tab) = LuaHelpers::AbsIndex(L,index), \ #define FOREACH_LUATABLEI(L, index, i) \ for( int SM_UNIQUE_NAME(tab) = LuaHelpers::AbsIndex(L,index), \ SM_UNIQUE_NAME(top) = lua_gettop(L), i = 1; \ - lua_rawgeti( L, tab, i ), \ + lua_rawgeti( L, SM_UNIQUE_NAME(tab), i ), \ lua_isnil(L, -1)? \ (lua_pop(L, 1), false):(true); /* if nil, pop the nil and stop traversal */ \ lua_settop(L,SM_UNIQUE_NAME(top)), ++i )