From 518fd6aa4d5d78455a1050c58542f99954fa0b7c Mon Sep 17 00:00:00 2001 From: belugas Date: Thu, 6 Sep 2007 03:02:38 +0000 Subject: (svn r11050) -Codechange: Use the translated gfx, not the original one. --- src/industry_cmd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index b24c5b877..260e84065 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1196,7 +1196,8 @@ static bool CheckIfIndustryTilesAreFree(TileIndex tile, const IndustryTileTable if (!EnsureNoVehicle(cur_tile)) return false; if (MayHaveBridgeAbove(cur_tile) && IsBridgeAbove(cur_tile)) return false; - const IndustryTileSpec *its = GetIndustryTileSpec(it->gfx); + const IndustryTileSpec *its = GetIndustryTileSpec(gfx); + IndustyBehaviour ind_behav = GetIndustrySpec(type)->behaviour; if (HASBIT(its->callback_flags, CBM_INDT_SHAPE_CHECK)) { -- cgit v1.2.3-70-g09d2