diff options
Diffstat (limited to 'engine/overworld/time.asm')
-rw-r--r-- | engine/overworld/time.asm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/overworld/time.asm b/engine/overworld/time.asm index a109a417..1366815f 100644 --- a/engine/overworld/time.asm +++ b/engine/overworld/time.asm @@ -216,15 +216,15 @@ DoMysteryGiftIfDayHasPassed: call OpenSRAM ld hl, sMysteryGiftTimer ld a, [hli] - ld [wBuffer1], a + ld [wTempMysteryGiftTimer], a ld a, [hl] - ld [wBuffer2], a + ld [wTempMysteryGiftTimer + 1], a call CloseSRAM - ld hl, wBuffer1 + ld hl, wTempMysteryGiftTimer call CheckDayDependentEventHL jr nc, .not_timed_out - ld hl, wBuffer1 + ld hl, wTempMysteryGiftTimer call InitOneDayCountdown call CloseSRAM farcall ResetDailyMysteryGiftLimitIfUnlocked @@ -232,7 +232,7 @@ DoMysteryGiftIfDayHasPassed: .not_timed_out ld a, BANK(sMysteryGiftTimer) call OpenSRAM - ld hl, wBuffer1 + ld hl, wTempMysteryGiftTimer ld a, [hli] ld [sMysteryGiftTimer], a ld a, [hl] |