summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemy Oukaour <remy.oukaour@gmail.com>2018-01-20 14:10:31 -0500
committerRemy Oukaour <remy.oukaour@gmail.com>2018-01-20 14:10:31 -0500
commit732bb36c8661afdaca765604c75437089930738c (patch)
treebc5c7b0c6aa5533a6ce81efa19e1955578e8e844
parent05382d3e3c03616d6edf21833e89a8264a8cd10a (diff)
Scale addresses with PARTY_LENGTH
-rwxr-xr-xengine/battle/trainer_huds.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/battle/trainer_huds.asm b/engine/battle/trainer_huds.asm
index 179cc806d..317e72214 100755
--- a/engine/battle/trainer_huds.asm
+++ b/engine/battle/trainer_huds.asm
@@ -44,7 +44,7 @@ ShowOTTrainerMonsRemaining: ; 2c03a
ld [hl], 4 * 8
ld a, -8
ld [wPlaceBallsDirection], a
- ld hl, Sprite07
+ ld hl, Sprite01 + PARTY_LENGTH * SPRITEOAMSTRUCT_LENGTH
jp LoadTrainerHudOAM
; 2c059
@@ -203,7 +203,7 @@ LinkBattle_TrainerHuds: ; 2c10d
ld a, 10 * 8
ld [hli], a
ld [hl], 13 * 8
- ld hl, Sprite07
+ ld hl, Sprite01 + PARTY_LENGTH * SPRITEOAMSTRUCT_LENGTH
jp LoadTrainerHudOAM
; 2c143