diff --git a/src/components/controls/MenuControls.gd b/src/components/controls/MenuControls.gd index 452e7dd..8732c3a 100644 --- a/src/components/controls/MenuControls.gd +++ b/src/components/controls/MenuControls.gd @@ -46,8 +46,11 @@ func call_menu_action(): if action == "menu_level_select": menuSpawner.open_menu_section( controlledNode, - # R:TODO check for actual levels avaliable - {items = LevelPatterns.get_menu_levels(G.settings.MAX_LEVEL)} + { + items = LevelPatterns.get_menu_levels( + clampi(G.settings.MAX_LEVEL, 0, LevelPatterns.levels.size - 1) + ) + } ) return