Fix shallow_literal/shallow_parsed not returning named tuples for the WML tags

This commit is contained in:
Celtic Minstrel 2023-02-12 18:12:47 -05:00
parent 9eefcda17a
commit c143dfdfeb

View file

@ -253,7 +253,7 @@ static int impl_vconfig_get(lua_State *L)
} }
for (int j = 1; i != i_end; ++i, ++j) for (int j = 1; i != i_end; ++i, ++j)
{ {
lua_createtable(L, 2, 0); luaW_push_namedtuple(L, {"tag", "contents"});
lua_pushstring(L, i.get_key().c_str()); lua_pushstring(L, i.get_key().c_str());
lua_rawseti(L, -2, 1); lua_rawseti(L, -2, 1);
luaW_pushvconfig(L, i.get_child()); luaW_pushvconfig(L, i.get_child());