Add virtual destructor to Object class

pull/602/head
Bastiaan Olij 2021-09-22 00:40:57 +10:00
parent b21069c573
commit 7a2a7ea9e4
1 changed files with 2 additions and 0 deletions

View File

@ -961,6 +961,8 @@ def generate_engine_class_header(class_api, used_classes, fully_used_classes, us
result.append("") result.append("")
result.append("\ttemplate<class T>") result.append("\ttemplate<class T>")
result.append("\tstatic T *cast_to(Object *p_object);") result.append("\tstatic T *cast_to(Object *p_object);")
result.append("\tvirtual ~Object() {};")
elif use_template_get_node and class_name == "Node": elif use_template_get_node and class_name == "Node":
result.append("\ttemplate<class T>") result.append("\ttemplate<class T>")
result.append( result.append(