From 48fafb78456bdf809869e8b87db8847b2d9be62e Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Mon, 24 Sep 2018 16:54:22 +0330 Subject: fix --- luatablegen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luatablegen.py b/luatablegen.py index 4d72ef9..83d1ea5 100755 --- a/luatablegen.py +++ b/luatablegen.py @@ -555,7 +555,7 @@ class TbgParser(object): if childer.attrib["luatype"] == "integer": c_source.write("lua_pushinteger(__ls, _st->" + child.attrib["name"] + ");\n") elif childer.attrib["luatype"] == "number":c_source.write("lua_pushnumber(__ls, _st->" + child.attrib["name"] + ");\n") elif childer.attrib["luatype"] == "string":c_source.write("lua_pushstring(__ls, _st->" + child.attrib["name"] + ");\n") - elif childer.attrib["luatype"] == "table": + elif childer.attrib["luatype"] == "lightuserdata": count = get_elem_count(childer) if count == 1: ref_type_node = get_def_node_tag(childer.attrib["type"][6:], self.elems) -- cgit v1.2.3