summaryrefslogtreecommitdiff
path: root/engine/routines/leveluphappinessmod.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/routines/leveluphappinessmod.asm')
-rw-r--r--engine/routines/leveluphappinessmod.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/routines/leveluphappinessmod.asm b/engine/routines/leveluphappinessmod.asm
index c253e8872..8c6dd92fe 100644
--- a/engine/routines/leveluphappinessmod.asm
+++ b/engine/routines/leveluphappinessmod.asm
@@ -1,13 +1,13 @@
LevelUpHappinessMod: ; 2709e
- ld a, [CurPartyMon]
- ld hl, PartyMon1CaughtLocation
+ ld a, [wCurPartyMon]
+ ld hl, wPartyMon1CaughtLocation
call GetPartyLocation
ld a, [hl]
and $7f
ld d, a
- ld a, [MapGroup]
+ ld a, [wMapGroup]
ld b, a
- ld a, [MapNumber]
+ ld a, [wMapNumber]
ld c, a
call GetWorldMapLocation
cp d