diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index 6169c97fd9..f109a39b1d 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -1651,7 +1651,7 @@ static void AircraftEventHandler_HeliTakeOff(Aircraft *v, const AirportFTAClass /* Send the helicopter to a hangar if needed for replacement */ if (v->NeedsAutomaticServicing()) { Backup cur_company(_current_company, v->owner); - Command::Do(DoCommandFlag::Execute, v->index, DepotCommandFlags{DepotCommandFlag::Service, DepotCommandFlag::LocateHangar}, {}); + Command::Do(DoCommandFlag::Execute, v->index, DepotCommandFlag::Service, {}); cur_company.Restore(); } } diff --git a/src/vehicle_type.h b/src/vehicle_type.h index a1331b9273..49028c0eac 100644 --- a/src/vehicle_type.h +++ b/src/vehicle_type.h @@ -56,7 +56,6 @@ enum class DepotCommandFlag : uint8_t { Service, ///< The vehicle will leave the depot right after arrival (service only) MassSend, ///< Tells that it's a mass send to depot command (type in VLW flag) DontCancel, ///< Don't cancel current goto depot command if any - LocateHangar, ///< Find another airport if the target one lacks a hangar }; using DepotCommandFlags = EnumBitSet;