mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 20:43:04 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user