From 7c0553b2d25b8e76615afd83e2d6a65d4df9c4fd Mon Sep 17 00:00:00 2001 From: Rangi Date: Tue, 23 Jan 2018 10:56:36 -0500 Subject: x is the standard temp variable --- engine/events/battle_tower/battle_tower.asm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engine') diff --git a/engine/events/battle_tower/battle_tower.asm b/engine/events/battle_tower/battle_tower.asm index 94a29cdab..b1d12bc5f 100755 --- a/engine/events/battle_tower/battle_tower.asm +++ b/engine/events/battle_tower/battle_tower.asm @@ -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 -- cgit v1.2.3