Fix #14153: NPE in Guest::UpdateRideLeaveVehicle()

This commit is contained in:
Michael Steenbeek 2021-03-20 17:09:19 +01:00 committed by GitHub
parent d1267a276f
commit 9132c9ad8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -4018,6 +4018,8 @@ void Guest::UpdateRideLeaveVehicle()
rideEntry = vehicle->GetRideEntry();
rct_ride_entry_vehicle* vehicleEntry = &rideEntry->vehicles[vehicle->vehicle_type];
if (vehicleEntry == nullptr)
return;
Var37 = ((exitLocation.direction | peep_get_waypointed_seat_location(this, ride, vehicleEntry, station_direction) * 4) * 4)
| 1;