summaryrefslogtreecommitdiff
path: root/scenes/levels/base_level.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scenes/levels/base_level.gd')
-rw-r--r--scenes/levels/base_level.gd2
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()