summaryrefslogtreecommitdiff
path: root/src/rotating_gate.c
diff options
context:
space:
mode:
authorDiegoisawesome <Diegoisawesome@users.noreply.github.com>2018-05-19 23:34:30 -0500
committerGitHub <noreply@github.com>2018-05-19 23:34:30 -0500
commitde60bdf2febff1879d7a1985a009dc439a546497 (patch)
tree3d62086af4f8fdd4d30154839be6e403f555ab9b /src/rotating_gate.c
parentecfe49ec6147fec75969b769605ec09b4a87c66a (diff)
parent0978cc60a11ba97061bf997b322eaf5a3d6a18f8 (diff)
Merge pull request #256 from DizzyEggg/decompile_field_tasks
Decompile field tasks
Diffstat (limited to 'src/rotating_gate.c')
-rw-r--r--src/rotating_gate.c6
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)