diff options
author | Adelaide Walter <adelaidekwalter@gmail.com> | 2018-01-04 14:53:50 -0500 |
---|---|---|
committer | Adelaide Walter <adelaidekwalter@gmail.com> | 2018-01-04 14:53:50 -0500 |
commit | fb422e8d9c78c56db27d974baa04c7a16bf5df41 (patch) | |
tree | d2b99ef626f0e3dfa5a896b4d2984963560cafcc /engine/battle/checkbattlescene.asm | |
parent | 5fd3bfa83210fd9885f7558d02b01fc5ea3c5ed1 (diff) |
Use BANK for hardcoded WRAM banks preceding FarCopyWRAM/GetFarWRAMByte calls.
Diffstat (limited to 'engine/battle/checkbattlescene.asm')
-rw-r--r-- | engine/battle/checkbattlescene.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/battle/checkbattlescene.asm b/engine/battle/checkbattlescene.asm index b63f00907..5253c3c47 100644 --- a/engine/battle/checkbattlescene.asm +++ b/engine/battle/checkbattlescene.asm @@ -1,7 +1,7 @@ CheckBattleScene: ; 4ea44 ; Return carry if battle scene is turned off. - ld a, 0 + ld a, BANK(wLinkMode) ld hl, wLinkMode call GetFarWRAMByte cp LINK_MOBILE @@ -33,7 +33,7 @@ CheckBattleScene: ; 4ea44 ret .from_wram - ld a, $5 + ld a, BANK(w5_dc00) ld hl, w5_dc00 call GetFarWRAMByte bit 0, a |