mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix flying boats when entering the station.
Issue was caused by not clearing the word var_34 but instead only the byte var_34. This caused track_progress (word var_34) to become a very large negative number that would be interpreted as a valid track_progress. This would eventually end up reading invalid memory.
This commit is contained in:
parent
3e03ab71fa
commit
1f4b4b2c3f
|
@ -3190,7 +3190,7 @@ static void loc_6DA9F9(rct_vehicle *vehicle, int x, int y, int bx, int dx)
|
|||
(mapElement->properties.track.type << 2) |
|
||||
(ride->boat_hire_return_direction & 3);
|
||||
|
||||
vehicle->var_34 = 0;
|
||||
vehicle->track_progress = 0;
|
||||
vehicle->status = VEHICLE_STATUS_TRAVELLING;
|
||||
unk_F64E20->x = x;
|
||||
unk_F64E20->y = y;
|
||||
|
|
Loading…
Reference in New Issue