diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-25 16:33:05 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-25 16:44:41 -0400 |
commit | 95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1 (patch) | |
tree | 5a7b79846bd7f07e40310da46b21873774a08ef7 /data/trainers/move_choices.asm | |
parent | e1f6bb53939be34f55e05cbbd19cd758936b3422 (diff) |
Verify data table and name list sizes with assertion macros
Fixes #312
Diffstat (limited to 'data/trainers/move_choices.asm')
-rw-r--r-- | data/trainers/move_choices.asm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/data/trainers/move_choices.asm b/data/trainers/move_choices.asm index 6e6df63c..d4900c9f 100644 --- a/data/trainers/move_choices.asm +++ b/data/trainers/move_choices.asm @@ -4,10 +4,12 @@ REPT _NARG shift ENDR db 0 ; end +list_index = list_index + 1 ENDM ; move choice modification methods that are applied for each trainer class TrainerClassMoveChoiceModifications: + list_start TrainerClassMoveChoiceModifications move_choices ; YOUNGSTER move_choices 1 ; BUG CATCHER move_choices 1 ; LASS @@ -55,3 +57,4 @@ TrainerClassMoveChoiceModifications: move_choices 1 ; CHANNELER move_choices 1 ; AGATHA move_choices 1, 3 ; LANCE + assert_list_length NUM_TRAINERS |