diff options
author | Treeki <treeki@gmail.com> | 2011-05-09 00:10:37 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2011-05-09 00:10:37 +0200 |
commit | a7d84bf6cb98535a3076a4a0864c9e817f58084c (patch) | |
tree | 146b00f8f68617e26c3d9c8f4b1326483affa9b7 /src | |
parent | 17c0fba51e3878cdaa63379ca7b9e23abd19b620 (diff) | |
download | kamek-a7d84bf6cb98535a3076a4a0864c9e817f58084c.tar.gz kamek-a7d84bf6cb98535a3076a4a0864c9e817f58084c.zip |
fixing the switch block
Diffstat (limited to 'src')
-rw-r--r-- | src/switchblock.S | 4 |
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 |