mirror of https://github.com/OpenRCT2/OpenRCT2.git
This commit is contained in:
parent
63c11ab8fd
commit
3a47e3b309
|
@ -3728,9 +3728,18 @@ void Guest::UpdateRideAdvanceThroughEntrance()
|
||||||
}
|
}
|
||||||
|
|
||||||
Vehicle* vehicle = GET_VEHICLE(ride->vehicles[current_train]);
|
Vehicle* vehicle = GET_VEHICLE(ride->vehicles[current_train]);
|
||||||
|
if (vehicle == nullptr)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (int32_t i = current_car; i != 0; --i)
|
for (int32_t i = current_car; i != 0; --i)
|
||||||
{
|
{
|
||||||
vehicle = GET_VEHICLE(vehicle->next_vehicle_on_train);
|
vehicle = GET_VEHICLE(vehicle->next_vehicle_on_train);
|
||||||
|
if (vehicle == nullptr)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ride_entry = get_ride_entry(vehicle->ride_subtype);
|
ride_entry = get_ride_entry(vehicle->ride_subtype);
|
||||||
|
|
Loading…
Reference in New Issue