summaryrefslogtreecommitdiff
path: root/src/switchblock.S
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-05-09 00:10:37 +0200
committerTreeki <treeki@gmail.com>2011-05-09 00:10:37 +0200
commita7d84bf6cb98535a3076a4a0864c9e817f58084c (patch)
tree146b00f8f68617e26c3d9c8f4b1326483affa9b7 /src/switchblock.S
parent17c0fba51e3878cdaa63379ca7b9e23abd19b620 (diff)
downloadkamek-a7d84bf6cb98535a3076a4a0864c9e817f58084c.tar.gz
kamek-a7d84bf6cb98535a3076a4a0864c9e817f58084c.zip
fixing the switch block
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