summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-05-09 00:07:32 +0200
committerTreeki <treeki@gmail.com>2011-05-09 00:07:32 +0200
commit8b66ac99b819e4e17cbfb1586232e5542caf532e (patch)
tree7bec923af560069c8ac1a4cf5317245b5d3e31f2
parentdfba90ee568e88aa05915ac7af9c81c45daac1a4 (diff)
downloadkamek-8b66ac99b819e4e17cbfb1586232e5542caf532e.tar.gz
kamek-8b66ac99b819e4e17cbfb1586232e5542caf532e.zip
fixed switch block
-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