From 7938e6f793c54ab55c218dec47ec4cbead7f1eb0 Mon Sep 17 00:00:00 2001 From: belugas Date: Wed, 17 Oct 2007 02:46:21 +0000 Subject: [PATCH] (svn r11282) -Fix[FS#1344]: Use the right pointer when evaluating the size of the layouts. --- src/newgrf.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 7698291582..60b98182db 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -1890,8 +1890,7 @@ static bool IndustriesChangeInfo(uint indid, int numinfo, int prop, byte **bufp, copy_from = (IndustryTileTable*)_origin_industry_specs[type].table[laynbr]; for (size = 1;; size++) { - if (_origin_industry_specs[type].table[laynbr + (size - 1)]->ti.x == -0x80 && - _origin_industry_specs[type].table[laynbr + (size - 1)]->ti.y == 0) break; + if (copy_from[size - 1].ti.x == -0x80 && copy_from[size - 1].ti.y) break; } break; }