summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-06-11 14:25:38 +0000
committerbelugas <belugas@openttd.org>2007-06-11 14:25:38 +0000
commit81c7c87ed7554069408e0ead49b35b381a4f229e (patch)
tree11120f1a2fea5ce525487743e8a22032b68ebdef /src
parentcc4d18ecc440aea0ecb9f754fcc90803c9050d2b (diff)
downloadopenttd-81c7c87ed7554069408e0ead49b35b381a4f229e.tar.xz
(svn r10099) -Fix(r9867, FS860): Use the specs of the to-be-created industry instead of the scanned industry
Spotted by Oxygene
Diffstat (limited to 'src')
-rw-r--r--src/industry_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 23fe7bd4d..c783d1681 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1308,7 +1308,7 @@ static bool CheckIfTooCloseToIndustry(TileIndex tile, int type)
/* check if an industry that accepts the same goods is nearby */
if (DistanceMax(tile, i->xy) <= 14 &&
indspec->accepts_cargo[0] != CT_INVALID &&
- indspec->accepts_cargo[0] == indspec->accepts_cargo[0] && (
+ indspec->accepts_cargo[0] == GetIndustrySpec(i->type)->accepts_cargo[0] && (
_game_mode != GM_EDITOR ||
!_patches.same_industry_close ||
!_patches.multiple_industry_per_town