Fix errors when unloading demos with DemoPlayer

This commit is contained in:
Nathan Lovato 2020-02-11 13:31:15 -06:00
parent f9b52fc24c
commit 04468a7d60

View File

@ -12,5 +12,5 @@ func load_demo(scene_path: String) -> void:
func unload() -> void:
for node in get_children():
remove_child(node)
call_deferred("remove_child", node)
node.queue_free()