mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 13:03:11 +01:00
This commit is contained in:
committed by
Michał Janiszewski
parent
63c11ab8fd
commit
3a47e3b309
@@ -3728,9 +3728,18 @@ void Guest::UpdateRideAdvanceThroughEntrance()
|
||||
}
|
||||
|
||||
Vehicle* vehicle = GET_VEHICLE(ride->vehicles[current_train]);
|
||||
if (vehicle == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
for (int32_t i = current_car; i != 0; --i)
|
||||
{
|
||||
vehicle = GET_VEHICLE(vehicle->next_vehicle_on_train);
|
||||
if (vehicle == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
ride_entry = get_ride_entry(vehicle->ride_subtype);
|
||||
|
||||
Reference in New Issue
Block a user