Changeset - r7745:31fac36516c6
[Not reviewed]
master
0 1 0
belugas - 17 years ago 2007-10-17 02:46:21
belugas@openttd.org
(svn r11282) -Fix[FS#1344]: Use the right pointer when evaluating the size of the layouts.
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/newgrf.cpp
Show inline comments
 
@@ -1890,8 +1890,7 @@ static bool IndustriesChangeInfo(uint in
 

	
 
							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;
 
						}
0 comments (0 inline, 0 general)