Add virtual destructor to Object class
parent
b21069c573
commit
7a2a7ea9e4
|
@ -961,6 +961,8 @@ def generate_engine_class_header(class_api, used_classes, fully_used_classes, us
|
|||
result.append("")
|
||||
result.append("\ttemplate<class T>")
|
||||
result.append("\tstatic T *cast_to(Object *p_object);")
|
||||
|
||||
result.append("\tvirtual ~Object() {};")
|
||||
elif use_template_get_node and class_name == "Node":
|
||||
result.append("\ttemplate<class T>")
|
||||
result.append(
|
||||
|
|
Loading…
Reference in New Issue