src/industry_cmd.cpp
changeset 7531 3319970f2de9
parent 7522 050baf772f07
child 7577 ab000224166b
--- a/src/industry_cmd.cpp	Wed Sep 05 23:26:45 2007 +0000
+++ b/src/industry_cmd.cpp	Thu Sep 06 03:02:38 2007 +0000
@@ -1196,7 +1196,8 @@
 			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)) {