Fix da35e7bb
: Wrong engine ID in Vehicle::NeedsServicing()
This commit is contained in:
@@ -293,7 +293,7 @@ bool Vehicle::NeedsServicing() const
|
|||||||
CargoID cargo_type;
|
CargoID cargo_type;
|
||||||
CargoTypes cargo_mask = GetCargoTypesOfArticulatedVehicle(v, &cargo_type);
|
CargoTypes cargo_mask = GetCargoTypesOfArticulatedVehicle(v, &cargo_type);
|
||||||
if (!HasAtMostOneBit(cargo_mask)) {
|
if (!HasAtMostOneBit(cargo_mask)) {
|
||||||
CargoTypes new_engine_default_cargoes = GetCargoTypesOfArticulatedParts(engine_type);
|
CargoTypes new_engine_default_cargoes = GetCargoTypesOfArticulatedParts(new_engine);
|
||||||
if ((cargo_mask & new_engine_default_cargoes) != cargo_mask) {
|
if ((cargo_mask & new_engine_default_cargoes) != cargo_mask) {
|
||||||
/* We cannot refit to mixed cargoes in an automated way */
|
/* We cannot refit to mixed cargoes in an automated way */
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user