mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-23 10:51:58 -05:00
parent
24edada2d8
commit
fc645180be
1 changed files with 1 additions and 1 deletions
|
@ -7105,7 +7105,7 @@ Vehicle* ride_get_broken_vehicle(Ride* ride)
|
|||
}
|
||||
|
||||
Vehicle* vehicle = GET_VEHICLE(vehicleIndex);
|
||||
for (uint8_t i = 0; vehicle && i < ride->broken_car; i++)
|
||||
for (uint8_t i = 0; vehicle != nullptr && i < ride->broken_car; i++)
|
||||
{
|
||||
vehicle = GET_VEHICLE(vehicle->next_vehicle_on_train);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue