From 4ad981a98e8a3dae5bc975babd9f10eb15f738a3 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 53a3639229..711b918109 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;