summaryrefslogtreecommitdiff
path: root/engine/overworld/map_objects.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-06-15 23:28:24 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-06-15 23:28:24 -0400
commit4342ced31f53ff5d523a7a9cf15aad8e37b355ae (patch)
treecf2d1e7d8d40ca31ab2b7180acfbb9e4eed8573b /engine/overworld/map_objects.asm
parentbb0264e619a5c6a3eef1e73a6cd63ddeb3295749 (diff)
Identify wObjectPriorities
Diffstat (limited to 'engine/overworld/map_objects.asm')
-rw-r--r--engine/overworld/map_objects.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/overworld/map_objects.asm b/engine/overworld/map_objects.asm
index 5e2691fc1..27a09509b 100644
--- a/engine/overworld/map_objects.asm
+++ b/engine/overworld/map_objects.asm
@@ -2781,12 +2781,12 @@ InitSprites:
.DeterminePriorities:
xor a
- ld hl, wMovementPointer
+ ld hl, wObjectPriorities
ld bc, NUM_OBJECT_STRUCTS
call ByteFill
ld d, 0
ld bc, wObjectStructs
- ld hl, wMovementPointer
+ ld hl, wObjectPriorities
.loop
push hl
call DoesObjectHaveASprite
@@ -2833,7 +2833,7 @@ InitSprites:
ret
.InitSpritesByPriority:
- ld hl, wMovementPointer
+ ld hl, wObjectPriorities
.next_sprite
ld a, [hli]
ld d, a