summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/color.asm4
-rw-r--r--engine/events_2.asm2
2 files changed, 3 insertions, 3 deletions
diff --git a/engine/color.asm b/engine/color.asm
index de318e54c..1a28e1104 100644
--- a/engine/color.asm
+++ b/engine/color.asm
@@ -1941,7 +1941,7 @@ Functionb1de: ; b1de
callba Function494ac
jr c, .asm_b230
- ld a, [wRoofPalette]
+ ld a, [wPermission]
and 7
ld e, a
ld d, 0
@@ -2007,7 +2007,7 @@ endr
ld a, $5 ; BANK(Unkn2Pals)
call FarCopyWRAM
- ld a, [wRoofPalette]
+ ld a, [wPermission]
cp 1
jr z, .asm_b253
cp 2
diff --git a/engine/events_2.asm b/engine/events_2.asm
index cbcbaebb7..bca1ec27b 100644
--- a/engine/events_2.asm
+++ b/engine/events_2.asm
@@ -146,7 +146,7 @@ Function97cfd:: ; 97cfd
ld hl, StatusFlags
bit 5, [hl]
jr nz, .asm_97d21
- ld a, [wRoofPalette]
+ ld a, [wPermission]
cp $4
jr z, .asm_97d17
cp $7