(svn r11240) -Fix [FS#1323] (r11152): forgot to invert a test

This commit is contained in:
glx 2007-10-10 00:01:41 +00:00
parent ffbd818517
commit 129d5c6e8a
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ static uint GetClosestWaterDistance(TileIndex tile, bool water)
* @return value encoded as per NFO specs */
uint32 GetIndustryIDAtOffset(TileIndex tile, const Industry *i)
{
if (!IsTileType(tile, MP_INDUSTRY) || GetIndustryIndex(tile) == i->index) {
if (!IsTileType(tile, MP_INDUSTRY) || GetIndustryIndex(tile) != i->index) {
/* No industry and/or the tile does not have the same industry as the one we match it with */
return 0xFFFF;
}