Ammend #11090 for consistency on nullptr check (#11104)

This commit is contained in:
Tulio Leao 2020-03-28 08:39:59 -03:00 committed by GitHub
parent 24edada2d8
commit fc645180be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}