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:
duncanspumpkin 2015-12-31 10:27:33 +00:00
parent 3e03ab71fa
commit 1f4b4b2c3f
1 changed files with 1 additions and 1 deletions

View File

@ -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;