x is the standard temp variable

This commit is contained in:
Rangi 2018-01-23 10:56:36 -05:00
parent 94ae404732
commit 7c0553b2d2

View File

@ -407,11 +407,11 @@ ValidateBTParty: ; 170394
ld c, l
ld a, [hl]
and a
idx = $ff
x = $ff
rept ($ff +- NUM_POKEMON)
jr z, .invalid
cp idx
idx = idx +- 1
cp x
x = x +- 1
endr
jr nz, .valid