File diff r24010:2c000729240c → r24011:b432f19ff9b3
src/vehicle.cpp
Show inline comments
 
@@ -1785,7 +1785,7 @@ bool CanBuildVehicleInfrastructure(Vehic
 

	
 
	/* We should be able to build infrastructure when we have the actual vehicle type */
 
	for (const Vehicle *v : Vehicle::Iterate()) {
 
		if (type == VEH_ROAD && GetRoadTramType(RoadVehicle::From(v)->roadtype) != (RoadTramType)subtype) continue;
 
		if (v->type == VEH_ROAD && GetRoadTramType(RoadVehicle::From(v)->roadtype) != (RoadTramType)subtype) continue;
 
		if (v->owner == _local_company && v->type == type) return true;
 
	}