small racing game im working on
Diffstat (limited to 'scenes/ghost_watcher.gd')
-rw-r--r--scenes/ghost_watcher.gd1
1 files changed, 1 insertions, 0 deletions
diff --git a/scenes/ghost_watcher.gd b/scenes/ghost_watcher.gd
index abf2d1c..3df6d7b 100644
--- a/scenes/ghost_watcher.gd
+++ b/scenes/ghost_watcher.gd
@@ -56,6 +56,7 @@ func _physics_process(delta: float) -> void:
timer.stop()
finished.emit()
ghost.reset(false)
+ queue_free()
return
ghost.update(Globals.ghost.load_snap(frame), delta)