From abafba642f6bcf35526b93f915c559fc39677c74 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Mon, 24 Sep 2018 18:27:26 +0330 Subject: update --- luatablegen.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/luatablegen.py b/luatablegen.py index 83d1ea5..f39db21 100755 --- a/luatablegen.py +++ b/luatablegen.py @@ -559,7 +559,10 @@ class TbgParser(object): count = get_elem_count(childer) if count == 1: ref_type_node = get_def_node_tag(childer.attrib["type"][6:], self.elems) - c_source.write("push_" + ref_type_node.attrib["name"] + "(__ls, _st->" + child.attrib["name"] + ");\n") + if ref_type_node != None: + c_source.write("push_" + ref_type_node.attrib["name"] + "(__ls, _st->" + child.attrib["name"] + ");\n") + else: + c_source.write("push_lightuserdata(__ls, _st->" + child.attrib["name"] + ");\n") # FIXME else: pass else: -- cgit v1.2.3