summaryrefslogtreecommitdiff
path: root/home.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2015-08-17 00:14:40 -0400
committeryenatch <yenatch@gmail.com>2015-08-17 00:14:40 -0400
commit9974a2c7014cbe7db3d0e516580fea48001ab3df (patch)
tree61c015b170efbe7975650f37d0f15cc775242aa0 /home.asm
parentb77741ff7020747dbee6b295b87afe6ef0963dd2 (diff)
parentabf3fc21378ddc6a4028aa1852d256472bc859e0 (diff)
Merge pull request #303 from yenatch/map-objects
Add constants for common map object ids.
Diffstat (limited to 'home.asm')
-rw-r--r--home.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/home.asm b/home.asm
index 47ea6d370..1cde0d5d0 100644
--- a/home.asm
+++ b/home.asm
@@ -1457,7 +1457,7 @@ CheckTrainerBattle:: ; 360d
.startbattle
pop de
pop af
- ld [$ffe0], a
+ ld [hLastTalked], a
ld a, b
ld [CurFruit], a
ld a, c
@@ -1474,7 +1474,7 @@ Function3674:: ; 3674
Function367e:: ; 367e
call GetMapScriptHeaderBank
ld [EngineBuffer1], a
- ld a, [$ffe0]
+ ld a, [hLastTalked]
call GetMapObject
ld hl, MAPOBJECT_SCRIPT_POINTER
add hl, bc