Fix signed/unsigned comparison warning

This commit is contained in:
Jonathan G Rennison
2024-03-02 00:42:08 +00:00
parent b04a356f53
commit 3a4398b613

View File

@@ -2923,7 +2923,7 @@ std::vector<uint32_t> _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<size_t>(destination / 32) >= _remove_order_from_all_vehicles_depots.size()) return false;
return HasBit(_remove_order_from_all_vehicles_depots[destination / 32], destination % 32);
}