From 8b66ac99b819e4e17cbfb1586232e5542caf532e Mon Sep 17 00:00:00 2001 From: Treeki Date: Mon, 9 May 2011 00:07:32 +0200 Subject: fixed switch block --- src/switchblock.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3