action_menu: The initial draw now correctly takes the table lenth into account
authorLukas Krickl <lukas@krickl.dev>
Sun, 31 Aug 2025 15:16:30 +0000 (17:16 +0200)
committerLukas Krickl <lukas@krickl.dev>
Sun, 31 Aug 2025 15:16:30 +0000 (17:16 +0200)
src/action_menu.s

index abacdc90c80d36bf27cc48b681573d7473c35672..874e9d9ccbedcf997d06363b078bba10d233afc2 100644 (file)
@@ -99,6 +99,7 @@ action_menu_init:
 
        ; draw the initial status line
        ld a, [action_menu_cursor]
+       ld b, ACTION_MENU_STR_TABLE_LEN 
        ld hl, action_menu_str_table
        call select_menu_draw_status