summaryrefslogtreecommitdiff
path: root/src/subsidy.cpp
diff options
context:
space:
mode:
authordP <dp@dpointer.org>2020-05-18 17:32:05 +0300
committerNiels Martin Hansen <nielsm@indvikleren.dk>2020-06-28 18:23:59 +0200
commit7045186594d947b53312a0e72c901f3889757437 (patch)
tree301e8b29cb7e8c179352a642db29739d938b7085 /src/subsidy.cpp
parent380fd8cab41bce0954bcd38eba5befe7057c8fa2 (diff)
downloadopenttd-7045186594d947b53312a0e72c901f3889757437.tar.xz
Change #8159: Remove now unused town cargo caches without bumping the savegame version
Diffstat (limited to 'src/subsidy.cpp')
-rw-r--r--src/subsidy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/subsidy.cpp b/src/subsidy.cpp
index 25651a91e..0a1af3c66 100644
--- a/src/subsidy.cpp
+++ b/src/subsidy.cpp
@@ -434,7 +434,7 @@ bool FindSubsidyCargoDestination(CargoID cid, SourceType src_type, SourceID src)
CargoArray town_cargo_accepted = GetAcceptanceAroundTiles(dst_town->xy, 1, 1, SUBSIDY_TOWN_CARGO_RADIUS);
/* Check if the town can accept this cargo. */
- if (town_cargo_accepted[cid] >= 8) return false;
+ if (town_cargo_accepted[cid] < 8) return false;
dst = dst_town->index;
break;