From cb65217069f154b45c64c443f4c4a3bd07bd67c3 Mon Sep 17 00:00:00 2001 From: belugas Date: Mon, 11 Jun 2007 14:25:38 +0000 Subject: [PATCH] (svn r10099) -Fix(r9867, FS860): Use the specs of the to-be-created industry instead of the scanned industry Spotted by Oxygene --- src/industry_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 23fe7bd4db..c783d1681e 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