x is the standard temp variable

This commit is contained in:
Rangi 2018-01-23 10:56:36 -05:00
parent 94ae404732
commit 7c0553b2d2
1 changed files with 3 additions and 3 deletions

View File

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