diff options
Diffstat (limited to 'scenes/levels/base_level.gd')
-rw-r--r-- | scenes/levels/base_level.gd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scenes/levels/base_level.gd b/scenes/levels/base_level.gd index f7d9cbe..5ae9ebe 100644 --- a/scenes/levels/base_level.gd +++ b/scenes/levels/base_level.gd @@ -50,7 +50,7 @@ func _on_Level_lost_heart(): func _load_next_level(): _unload_current_level() _current_level += 1 - if _current_level > _levels.size(): + if _current_level >= _levels.size(): get_tree().change_scene("res://scenes/menu.tscn") return _load_current_level() |