diff --git a/src/economy.cpp b/src/economy.cpp index 25a6356023..f933c80cbc 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1298,12 +1298,12 @@ static void DeliverGoodsToIndustry(const Station *st, CargoID cargo_type, int nu if (st->rect.IsEmpty()) return; /* Compute acceptance rectangle */ - uint catchment_radius = st->GetCatchmentRadius(); + int catchment_radius = st->GetCatchmentRadius(); Rect rect = { - max(st->rect.left - catchment_radius, 0u), - max(st->rect.top - catchment_radius, 0u), - min(st->rect.right + catchment_radius, MapMaxX()), - min(st->rect.bottom + catchment_radius, MapMaxY()) + max(st->rect.left - catchment_radius, 0), + max(st->rect.top - catchment_radius, 0), + min(st->rect.right + catchment_radius, MapMaxX()), + min(st->rect.bottom + catchment_radius, MapMaxY()) }; /* Compute maximum extent of acceptance rectangle wrt. station sign */