diff options
Diffstat (limited to 'table.c')
-rw-r--r-- | table.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,7 +3,7 @@ | |||
3 | ** Module to control static tables | 3 | ** Module to control static tables |
4 | */ | 4 | */ |
5 | 5 | ||
6 | char *rcs_table="$Id: table.c,v 2.65 1997/03/31 14:17:09 roberto Exp roberto $"; | 6 | char *rcs_table="$Id: table.c,v 2.66 1997/04/04 15:35:37 roberto Exp roberto $"; |
7 | 7 | ||
8 | #include "luamem.h" | 8 | #include "luamem.h" |
9 | #include "auxlib.h" | 9 | #include "auxlib.h" |
@@ -208,7 +208,7 @@ void luaI_nextvar (void) | |||
208 | if (lua_isnil(lua_getparam(1))) | 208 | if (lua_isnil(lua_getparam(1))) |
209 | next = 0; | 209 | next = 0; |
210 | else | 210 | else |
211 | next = luaI_findsymbolbyname(luaL_check_string(1, "nextvar")) + 1; | 211 | next = luaI_findsymbolbyname(luaL_check_string(1)) + 1; |
212 | while (next < lua_ntable && s_ttype(next) == LUA_T_NIL) | 212 | while (next < lua_ntable && s_ttype(next) == LUA_T_NIL) |
213 | next++; | 213 | next++; |
214 | if (next < lua_ntable) { | 214 | if (next < lua_ntable) { |