From 28b5adbcbc303cc2fc4daa7ff6cd89c77bacad31 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 8 Aug 2009 08:48:39 +0000 Subject: [PATCH] (svn r17108) -Fix (r17107): ST_INDUSTRY and ST_TOWN got swapped when setting up cargo subsidy. --- src/subsidy.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/subsidy.cpp b/src/subsidy.cpp index c2e9d46ee4..d09030df44 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: