diff options
author | smatz <smatz@openttd.org> | 2009-01-03 16:06:58 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-01-03 16:06:58 +0000 |
commit | 254e19da91309da11416c69ae7899dc11e608df0 (patch) | |
tree | cfe8a97df4f219709152bb304eee65541e9ab8db /src/economy.cpp | |
parent | 21308de6cb2995912d67af4ae704a8870d90e156 (diff) | |
download | openttd-254e19da91309da11416c69ae7899dc11e608df0.tar.xz |
(svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid depots, industries, towns and waypoints
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index 6b8162608..a6fbb55f2 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1313,7 +1313,7 @@ static bool CheckSubsidised(Station *from, Station *to, CargoID cargo_type) if (cs->town_effect == TE_PASSENGERS || cs->town_effect == TE_MAIL) { xy = GetTown(s->from)->xy; } else { - xy = (GetIndustry(s->from))->xy; + xy = GetIndustry(s->from)->xy; } if (DistanceMax(xy, from->xy) > 9) continue; |