# HG changeset patch # User belugas # Date 1192589181 0 # Node ID 2070fdfd10ba9cd5ae0fb32284ece4e240b1d58f # Parent 203522453bc77c52858242571fc1a999799c43ea (svn r11282) -Fix[FS#1344]: Use the right pointer when evaluating the size of the layouts. diff -r 203522453bc7 -r 2070fdfd10ba src/newgrf.cpp --- a/src/newgrf.cpp Wed Oct 17 01:33:21 2007 +0000 +++ b/src/newgrf.cpp Wed Oct 17 02:46:21 2007 +0000 @@ -1890,8 +1890,7 @@ 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; }