mirror of https://github.com/OpenTTD/OpenTTD
(svn r17108) -Fix (r17107): ST_INDUSTRY and ST_TOWN got swapped when setting up cargo subsidy.
parent
74d3382b94
commit
28b5adbcbc
|
@ -297,11 +297,11 @@ void SubsidyMonthlyLoop()
|
||||||
{
|
{
|
||||||
const CargoSpec *cs = CargoSpec::Get(fr.cargo);
|
const CargoSpec *cs = CargoSpec::Get(fr.cargo);
|
||||||
if (cs->town_effect == TE_GOODS || cs->town_effect == TE_FOOD) {
|
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_type = ST_TOWN;
|
||||||
s->dst = ((Town *)fr.to)->index;
|
s->dst = ((Town *)fr.to)->index;
|
||||||
|
} else {
|
||||||
|
s->dst_type = ST_INDUSTRY;
|
||||||
|
s->dst = ((Industry *)fr.to)->index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_subsidy:
|
add_subsidy:
|
||||||
|
|
Loading…
Reference in New Issue