diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_industries.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index 867bd7a44..8b8ffb443 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -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; } |