diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2018-05-19 18:13:48 +0200 |
---|---|---|
committer | DizzyEggg <jajkodizzy@wp.pl> | 2018-05-19 18:13:48 +0200 |
commit | 1307fde8ca6e5d9121f4589e6919d9966ea3e90f (patch) | |
tree | 29e8df8b2413089c1765f27f37c03bdc9d378b92 /src/rotating_gate.c | |
parent | d1798d0ed90dc4b17d43f13e84be35b889111417 (diff) |
make field tasks compile
Diffstat (limited to 'src/rotating_gate.c')
-rw-r--r-- | src/rotating_gate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rotating_gate.c b/src/rotating_gate.c index a16401fa2..b07814f58 100644 --- a/src/rotating_gate.c +++ b/src/rotating_gate.c @@ -646,7 +646,7 @@ static void RotatingGate_ResetAllGateOrientations(void) s32 i; u8 *ptr; - ptr = (u8 *)GetVarPointer(VAR_0x4000); + ptr = (u8 *)GetVarPointer(VAR_TEMP_0); for (i = 0; i < gRotatingGate_PuzzleCount; i++) { @@ -656,12 +656,12 @@ static void RotatingGate_ResetAllGateOrientations(void) static s32 RotatingGate_GetGateOrientation(u8 gateId) { - return ((u8 *)GetVarPointer(VAR_0x4000))[gateId]; + return ((u8 *)GetVarPointer(VAR_TEMP_0))[gateId]; } static void RotatingGate_SetGateOrientation(u8 gateId, u8 orientation) { - ((u8 *)GetVarPointer(VAR_0x4000))[gateId] = orientation; + ((u8 *)GetVarPointer(VAR_TEMP_0))[gateId] = orientation; } static void RotatingGate_RotateInDirection(u8 gateId, u32 rotationDirection) |