Codechange: Use EnumBitSet for DoCommandFlags
This commit is contained in:
+1
-1
@@ -1008,7 +1008,7 @@ struct RefitWindow : public Window {
|
||||
StringID GetCapacityString(const RefitOption &option) const
|
||||
{
|
||||
assert(_current_company == _local_company);
|
||||
auto [cost, refit_capacity, mail_capacity, cargo_capacities] = Command<CMD_REFIT_VEHICLE>::Do(DC_QUERY_COST, this->selected_vehicle, option.cargo, option.subtype, this->auto_refit, false, this->num_vehicles);
|
||||
auto [cost, refit_capacity, mail_capacity, cargo_capacities] = Command<CMD_REFIT_VEHICLE>::Do(DoCommandFlag::QueryCost, this->selected_vehicle, option.cargo, option.subtype, this->auto_refit, false, this->num_vehicles);
|
||||
|
||||
if (cost.Failed()) return INVALID_STRING_ID;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user