lua: fix stack going out of sync

This broke with recursive tables.
This commit is contained in:
wm4 2014-04-24 02:30:19 +02:00
parent 05bad1f57a
commit 8b7ac6e029
1 changed files with 1 additions and 0 deletions

View File

@ -638,6 +638,7 @@ static void makenode(void *tmp, mpv_node *dst, lua_State *L, int t)
format = MPV_FORMAT_NODE_ARRAY;
}
}
lua_pop(L, 2);
}
if (format == MPV_FORMAT_NONE) {
// If all keys are integers, and they're in sequence, take it