mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #12939: divide-by-0 in Vehicle::UpdateMotionDodgems()
This commit is contained in:
parent
6e5b4726a3
commit
45464cddeb
|
@ -6476,7 +6476,8 @@ int32_t Vehicle::UpdateMotionDodgems()
|
|||
}
|
||||
_eax -= velocity;
|
||||
_eax *= powered_acceleration * 2;
|
||||
_eax /= ebx;
|
||||
if (ebx != 0)
|
||||
_eax /= ebx;
|
||||
|
||||
acceleration = _eax - eax;
|
||||
return _vehicleMotionTrackFlags;
|
||||
|
|
Loading…
Reference in New Issue