Browse Source

:beetle: Fix return to title crash

Avoid having `get_tree()` returning a null object.
DricomDragon 1 week ago
parent
commit
3d25e72d16
1 changed files with 1 additions and 1 deletions
  1. 1 1
      godot/component/ui/pause/pause_menu.gd

+ 1 - 1
godot/component/ui/pause/pause_menu.gd

@@ -20,8 +20,8 @@ func _on_resume_button_pressed():
 
 
 func _on_title_button_pressed():
-	get_tree().reload_current_scene()
 	resume()
+	get_tree().reload_current_scene()
 
 
 func _on_quit_button_pressed():