Prevent OaksPKMNTalk from looping forever if NUM_GRASSMON is changed

That should cause no real problems because of a range check right after
it.
This commit is contained in:
mid-kid 2020-05-27 16:59:14 +02:00
parent aae59de91e
commit 248763b238

View File

@ -246,7 +246,7 @@ endr
.loop3 .loop3
; Choose one of the middle three Pokemon. ; Choose one of the middle three Pokemon.
call Random call Random
and NUM_GRASSMON maskbits NUM_GRASSMON
cp 2 cp 2
jr c, .loop3 jr c, .loop3
cp 5 cp 5