From 04468a7d60743006b99b24fd91ae9b1d805c395e Mon Sep 17 00:00:00 2001 From: Nathan Lovato Date: Tue, 11 Feb 2020 13:31:15 -0600 Subject: [PATCH] Fix errors when unloading demos with DemoPlayer --- project/demos/DemoPlayer.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/demos/DemoPlayer.gd b/project/demos/DemoPlayer.gd index c0f911f..cfcfa9f 100644 --- a/project/demos/DemoPlayer.gd +++ b/project/demos/DemoPlayer.gd @@ -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()