shithub: pokecrystal

Download patch

ref: 732bb36c8661afdaca765604c75437089930738c
parent: 05382d3e3c03616d6edf21833e89a8264a8cd10a
author: Remy Oukaour <[email protected]>
date: Sat Jan 20 09:10:31 EST 2018

Scale addresses with PARTY_LENGTH

--- a/engine/battle/trainer_huds.asm
+++ b/engine/battle/trainer_huds.asm
@@ -44,7 +44,7 @@
 	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 @@
 	ld a, 10 * 8
 	ld [hli], a
 	ld [hl], 13 * 8
-	ld hl, Sprite07
+	ld hl, Sprite01 + PARTY_LENGTH * SPRITEOAMSTRUCT_LENGTH
 	jp LoadTrainerHudOAM
 ; 2c143