mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-20 11:13:35 +01:00
Fix UB in RotatingGate_RotateInDirection
This commit is contained in:
parent
40c13e97e7
commit
43854664b5
@ -670,7 +670,8 @@ static void RotatingGate_RotateInDirection(u8 gateId, u32 rotationDirection)
|
||||
}
|
||||
else
|
||||
{
|
||||
orientation = ++orientation % GATE_ORIENTATION_MAX;
|
||||
orientation++;
|
||||
orientation = orientation % GATE_ORIENTATION_MAX;
|
||||
}
|
||||
RotatingGate_SetGateOrientation(gateId, orientation);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user