aboutsummaryrefslogtreecommitdiffstats
path: root/engine/events/hidden_objects/safari_game.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-06 19:03:05 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-06 19:03:05 -0400
commit772fcc7588a4e1fbe146a02b429cf64282c81dcb (patch)
treef491fa1d38e37ab10534b3f18422e0149ad0deca /engine/events/hidden_objects/safari_game.asm
parentMerge pull request #262 from Rangi42/master (diff)
downloadpokeyellow-772fcc7588a4e1fbe146a02b429cf64282c81dcb.tar.gz
pokeyellow-772fcc7588a4e1fbe146a02b429cf64282c81dcb.tar.xz
pokeyellow-772fcc7588a4e1fbe146a02b429cf64282c81dcb.zip
Specify the ldh instruction, don't turn ld into ldh
Diffstat (limited to 'engine/events/hidden_objects/safari_game.asm')
-rw-r--r--engine/events/hidden_objects/safari_game.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/events/hidden_objects/safari_game.asm b/engine/events/hidden_objects/safari_game.asm
index 656e872a..5996fc6f 100644
--- a/engine/events/hidden_objects/safari_game.asm
+++ b/engine/events/hidden_objects/safari_game.asm
@@ -37,12 +37,12 @@ SafariZoneGameOver:
cp SFX_SAFARI_ZONE_PA
jr nz, .waitForMusicToPlay
ld a, TEXT_SAFARI_GAME_OVER
- ld [hSpriteIndexOrTextID], a
+ ldh [hSpriteIndexOrTextID], a
call DisplayTextID
xor a
ld [wPlayerMovingDirection], a
ld a, SAFARI_ZONE_GATE
- ld [hWarpDestinationMap], a
+ ldh [hWarpDestinationMap], a
ld a, $3
ld [wDestinationWarpID], a
ld a, $5