(svn r11282) -Fix[FS#1344]: Use the right pointer when evaluating the size of the layouts.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
belugas 17 years ago
parent 2c330b2dff
commit 7938e6f793

@ -1890,8 +1890,7 @@ static bool IndustriesChangeInfo(uint indid, int numinfo, int prop, byte **bufp,
copy_from = (IndustryTileTable*)_origin_industry_specs[type].table[laynbr]; copy_from = (IndustryTileTable*)_origin_industry_specs[type].table[laynbr];
for (size = 1;; size++) { for (size = 1;; size++) {
if (_origin_industry_specs[type].table[laynbr + (size - 1)]->ti.x == -0x80 && if (copy_from[size - 1].ti.x == -0x80 && copy_from[size - 1].ti.y) break;
_origin_industry_specs[type].table[laynbr + (size - 1)]->ti.y == 0) break;
} }
break; break;
} }

Loading…
Cancel
Save