mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #14153: NPE in Guest::UpdateRideLeaveVehicle()
This commit is contained in:
parent
d1267a276f
commit
9132c9ad8d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue