From 248763b238b6f8e8cb0bc0c5db05a270f1931ae7 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Wed, 27 May 2020 16:59:14 +0200 Subject: [PATCH] Prevent OaksPKMNTalk from looping forever if NUM_GRASSMON is changed That should cause no real problems because of a range check right after it. --- engine/pokegear/radio.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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