summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2020-05-27 16:59:14 +0200
committermid-kid <esteve.varela@gmail.com>2020-08-03 22:56:49 +0200
commit248763b238b6f8e8cb0bc0c5db05a270f1931ae7 (patch)
tree79d275328559ce1cf9172eb004cffebc27cfcc10
parentaae59de91ea5ae077a726d51b4c86af613cf4e7e (diff)
Prevent OaksPKMNTalk from looping forever if NUM_GRASSMON is changed
That should cause no real problems because of a range check right after it.
-rw-r--r--engine/pokegear/radio.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/pokegear/radio.asm b/engine/pokegear/radio.asm
index c5961bea8..c4ca19255 100644
--- a/engine/pokegear/radio.asm
+++ b/engine/pokegear/radio.asm
@@ -246,7 +246,7 @@ endr
.loop3
; Choose one of the middle three Pokemon.
call Random
- and NUM_GRASSMON
+ maskbits NUM_GRASSMON
cp 2
jr c, .loop3
cp 5