diff --git a/src/vehicle.cpp b/src/vehicle.cpp index eb3bc71251..7ef6633e3f 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -273,7 +273,7 @@ bool Vehicle::NeedsAutomaticServicing() const { if (this->HasDepotOrder()) return false; if (this->current_order.IsType(OT_LOADING)) return false; - if (this->current_order.IsType(OT_GOTO_DEPOT) && this->current_order.GetDepotOrderType() != ODTFB_SERVICE) return false; + if (this->current_order.IsType(OT_GOTO_DEPOT) && (this->current_order.GetDepotOrderType() & ODTFB_SERVICE) == 0) return false; return NeedsServicing(); }