summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-08-08 08:48:39 +0000
committerfrosch <frosch@openttd.org>2009-08-08 08:48:39 +0000
commit28b5adbcbc303cc2fc4daa7ff6cd89c77bacad31 (patch)
treeabe5c524561dd41173cc1916198b76dc98c4e513
parent74d3382b946d71445fbce5699d1541946e928450 (diff)
downloadopenttd-28b5adbcbc303cc2fc4daa7ff6cd89c77bacad31.tar.xz
(svn r17108) -Fix (r17107): ST_INDUSTRY and ST_TOWN got swapped when setting up cargo subsidy.
-rw-r--r--src/subsidy.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/subsidy.cpp b/src/subsidy.cpp
index c2e9d46ee..d09030df4 100644
--- a/src/subsidy.cpp
+++ b/src/subsidy.cpp
@@ -297,11 +297,11 @@ void SubsidyMonthlyLoop()
{
const CargoSpec *cs = CargoSpec::Get(fr.cargo);
if (cs->town_effect == TE_GOODS || cs->town_effect == TE_FOOD) {
- s->dst_type = ST_INDUSTRY;
- s->dst = ((Industry *)fr.to)->index;
- } else {
s->dst_type = ST_TOWN;
s->dst = ((Town *)fr.to)->index;
+ } else {
+ s->dst_type = ST_INDUSTRY;
+ s->dst = ((Industry *)fr.to)->index;
}
}
add_subsidy: