Skip to content

Commit

Permalink
fix bug in lua table copying
Browse files Browse the repository at this point in the history
  • Loading branch information
wg committed Nov 4, 2015
1 parent 8bf0b2e commit 03dc368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,8 @@ void script_copy_value(lua_State *src, lua_State *dst, int index) {
lua_newtable(dst);
lua_pushnil(src);
while (lua_next(src, index - 1)) {
script_copy_value(src, dst, -1);
script_copy_value(src, dst, -2);
script_copy_value(src, dst, -1);
lua_settable(dst, -3);
lua_pop(src, 1);
}
Expand Down

0 comments on commit 03dc368

Please sign in to comment.