From 95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1 Mon Sep 17 00:00:00 2001 From: Rangi Date: Thu, 25 Mar 2021 16:33:05 -0400 Subject: Verify data table and name list sizes with assertion macros Fixes #312 --- data/yes_no_menu_strings.asm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'data/yes_no_menu_strings.asm') diff --git a/data/yes_no_menu_strings.asm b/data/yes_no_menu_strings.asm index db2eeb4c..e6e23279 100644 --- a/data/yes_no_menu_strings.asm +++ b/data/yes_no_menu_strings.asm @@ -5,6 +5,7 @@ ENDM TwoOptionMenuStrings: ; entries correspond to *_MENU constants + table_width 5, TwoOptionMenuStrings ; width, height, blank line before first menu item?, text pointer two_option_menu 4, 3, FALSE, .YesNoMenu two_option_menu 6, 3, FALSE, .NorthWestMenu @@ -14,6 +15,7 @@ TwoOptionMenuStrings: two_option_menu 7, 3, FALSE, .TradeCancelMenu two_option_menu 7, 4, TRUE, .HealCancelMenu two_option_menu 4, 3, FALSE, .NoYesMenu + assert_table_length NUM_TWO_OPTION_MENUS .NoYesMenu: db "NO" -- cgit v1.3.1-sl0p