summaryrefslogtreecommitdiff
path: root/engine/pokegear
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-10-26 22:24:47 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-10-26 22:24:47 -0400
commit676f2f12e3e7990dcc49e3ea391f10aae8131639 (patch)
tree0411091966fe7a6b5a64f27aa828df015bb84362 /engine/pokegear
parent46f6cc4d41494c044f1091491c712afc2a5bfd3a (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 2238424e..459cf1ac 100644
--- a/engine/pokegear/radio.asm
+++ b/engine/pokegear/radio.asm
@@ -312,6 +312,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
@@ -411,6 +412,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
@@ -1090,6 +1092,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
@@ -1223,6 +1226,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