From 4750d2836c5023bc5d1106ccc4d2e501e74bb243 Mon Sep 17 00:00:00 2001 From: SamuXarick <43006711+SamuXarick@users.noreply.github.com> Date: Thu, 11 Apr 2019 07:35:46 +0100 Subject: [PATCH] Fix 50e08f333a: Creating a cargo subsidy with town as source did not consider min population. (#7493) --- src/subsidy.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/subsidy.cpp b/src/subsidy.cpp index d1fda0f0ac..4e819fb4a7 100644 --- a/src/subsidy.cpp +++ b/src/subsidy.cpp @@ -333,6 +333,7 @@ bool FindSubsidyTownCargoRoute() /* Select a random town. */ const Town *src_town = Town::GetRandom(); + if (src_town->cache.population < SUBSIDY_CARGO_MIN_POPULATION) return false; CargoTypes town_cargo_produced = src_town->cargo_produced;