summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/menus/save.asm2
-rw-r--r--engine/overworld/map_objects.asm6
2 files changed, 4 insertions, 4 deletions
diff --git a/engine/menus/save.asm b/engine/menus/save.asm
index dc677c8ca..98a3a25c5 100644
--- a/engine/menus/save.asm
+++ b/engine/menus/save.asm
@@ -314,7 +314,7 @@ UpdateStackTop:
FindStackTop:
; Find the furthest point that sp has traversed to.
; This is distinct from the current value of sp.
- ld hl, wStack - $ff
+ ld hl, wStackBottom
.loop
ld a, [hl]
or a
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