(svn r18878) -Fix [NewGRF]: crash when a newgrf used var62 in an industry tile chain when the industry tile was part of an original industry

This commit is contained in:
yexo
2010-01-21 18:32:44 +00:00
parent d04441e3f7
commit e80f4f20af
3 changed files with 12 additions and 10 deletions

View File

@@ -100,7 +100,7 @@ static uint32 IndustryTileGetVariable(const ResolverObject *object, byte variabl
return UINT_MAX;
/* Get industry tile ID at offset */
case 0x62: return GetIndustryIDAtOffset(GetNearbyTile(parameter, tile), inds);
case 0x62: return GetIndustryIDAtOffset(GetNearbyTile(parameter, tile), inds, object->grffile->grfid);
}
DEBUG(grf, 1, "Unhandled industry tile property 0x%X", variable);