fix: change_scene_to_file is now called with call_deferred

This commit is contained in:
Sara 2025-07-24 00:08:40 +02:00
parent aaf46bc41c
commit 8edc34b7b6

View file

@ -10,7 +10,7 @@ func _on_health_changed(remaining: int, delta: int) -> void:
func _on_death() -> void:
get_tree().change_scene_to_file(\"res://menus/main_menu.tscn\")
get_tree().change_scene_to_file.call_deferred(\"res://menus/main_menu.tscn\")
"
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_bxedw"]