shithub: pokecrystal

Download patch

ref: 248763b238b6f8e8cb0bc0c5db05a270f1931ae7
parent: aae59de91ea5ae077a726d51b4c86af613cf4e7e
author: mid-kid <esteve.varela@gmail.com>
date: Wed May 27 12:59:14 EDT 2020

Prevent OaksPKMNTalk from looping forever if NUM_GRASSMON is changed

That should cause no real problems because of a range check right after
it.

--- a/engine/pokegear/radio.asm
+++ b/engine/pokegear/radio.asm
@@ -246,7 +246,7 @@
 .loop3
 	; Choose one of the middle three Pokemon.
 	call Random
-	and NUM_GRASSMON
+	maskbits NUM_GRASSMON
 	cp 2
 	jr c, .loop3
 	cp 5