mirror of https://github.com/pret/pokeemerald.git
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…
Reference in New Issue