summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a8caa04)
We'd always (wrongly) get the value from the last entry in the list.
Reported by Stefano Rivera.
lua_pop(L, 1);
unsigned flags = 0;
lua_pop(L, 1);
unsigned flags = 0;
- if (lua_objlen(L, -1) > 2) {
- lua_rawgeti(L, -1, 3);
+ if (lua_objlen(L, index) > 2) {
+ lua_rawgeti(L, index, 3);
flags = luaL_checknumber(L, -1);
lua_pop(L, 1);
}
flags = luaL_checknumber(L, -1);
lua_pop(L, 1);
}