diff options
author | SamuXarick <43006711+SamuXarick@users.noreply.github.com> | 2019-04-11 07:35:46 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-04-11 07:35:46 +0100 |
commit | 4ad981a98e8a3dae5bc975babd9f10eb15f738a3 (patch) | |
tree | a1aa662ac1cb4ef7ad48f0c64256472d9328db62 /src | |
parent | 7c8e7c6b6e16d4a26259a676db32d8776b99817e (diff) | |
download | openttd-4ad981a98e8a3dae5bc975babd9f10eb15f738a3.tar.xz |
Fix 50e08f333a: Creating a cargo subsidy with town as source did not consider min population. (#7493)
Diffstat (limited to 'src')
-rw-r--r-- | src/subsidy.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/subsidy.cpp b/src/subsidy.cpp index 53a363922..711b91810 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; |