summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/switchblock.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/switchblock.S b/src/switchblock.S
index f219ee4..fd192df 100644
--- a/src/switchblock.S
+++ b/src/switchblock.S
@@ -31,7 +31,7 @@ ProcessTileNum_EndPatch:
ori r5, r5, BG_GM_ptr@l
lwz r5, 0(r5)
addis r5, r5, 9
- lbz r5, 0xAA8(r3)
+ lbz r5, 0xAA8(r5)
cmplwi r30, 0x58
bne not_red
@@ -67,6 +67,6 @@ ptnReturn:
lwz r31, 0xC(r1)
lwz r30, 0x8(r1)
mtlr r0
- addi sp, sp, 0x10
+ addi r1, r1, 0x10
blr