diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 4a66fbe6ee..d2e3ce0a0c 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -2923,7 +2923,7 @@ std::vector _remove_order_from_all_vehicles_depots; static bool IsBatchRemoveOrderDepotRemoved(DestinationID destination) { - if (destination / 32 >= _remove_order_from_all_vehicles_depots.size()) return false; + if (static_cast(destination / 32) >= _remove_order_from_all_vehicles_depots.size()) return false; return HasBit(_remove_order_from_all_vehicles_depots[destination / 32], destination % 32); }