diff options
author | belugas <belugas@openttd.org> | 2007-10-17 02:46:21 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-10-17 02:46:21 +0000 |
commit | ebd7b637334d004ae1528374998bd90881d99c47 (patch) | |
tree | d1429031165c14448b6030d51d2cda495d26776c | |
parent | 9804808fe413601607d44db65974f5a1cd4b1c17 (diff) | |
download | openttd-ebd7b637334d004ae1528374998bd90881d99c47.tar.xz |
(svn r11282) -Fix[FS#1344]: Use the right pointer when evaluating the size of the layouts.
-rw-r--r-- | src/newgrf.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 769829158..60b98182d 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; } |