summaryrefslogtreecommitdiff
path: root/engine/pokegear
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-10-26 22:24:38 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-10-26 22:24:38 -0400
commitc85ba78b778a0e35c2fe7f97ed4e8fee1b3c7036 (patch)
treef3d25ab52cbb2d1e92c89e1ad976dcb929c05768 /engine/pokegear
parent9dcdad5e60fbc10ba81ae127743c78a6b00d3dd5 (diff)
Use more assertions to ensure correct code and data
Diffstat (limited to 'engine/pokegear')
-rw-r--r--engine/pokegear/radio.asm4
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/pokegear/radio.asm b/engine/pokegear/radio.asm
index 985657198..bc7c3195d 100644
--- a/engine/pokegear/radio.asm
+++ b/engine/pokegear/radio.asm
@@ -334,6 +334,7 @@ OaksPKMNTalk8:
; so no need for a retry loop
call Random
maskbits NUM_OAKS_POKEMON_TALK_ADVERBS
+ assert_power_of_2 NUM_OAKS_POKEMON_TALK_ADVERBS
ld e, a
ld d, 0
ld hl, .Adverbs
@@ -433,6 +434,7 @@ OaksPKMNTalk9:
; so no need for a retry loop
call Random
maskbits NUM_OAKS_POKEMON_TALK_ADJECTIVES
+ assert_power_of_2 NUM_OAKS_POKEMON_TALK_ADJECTIVES
ld e, a
ld d, 0
ld hl, .Adjectives
@@ -1130,6 +1132,7 @@ PeoplePlaces5:
; so no need for a retry loop
call Random
maskbits NUM_PNP_PEOPLE_ADJECTIVES
+ assert_power_of_2 NUM_PNP_PEOPLE_ADJECTIVES
ld e, a
ld d, 0
ld hl, .Adjectives
@@ -1263,6 +1266,7 @@ PeoplePlaces7:
; so no need for a retry loop
call Random
maskbits NUM_PNP_PLACES_ADJECTIVES
+ assert_power_of_2 NUM_PNP_PLACES_ADJECTIVES
ld e, a
ld d, 0
ld hl, .Adjectives