From 129d5c6e8ab30cd2c7617b2bdd2755b7fbf06e1f Mon Sep 17 00:00:00 2001 From: glx Date: Wed, 10 Oct 2007 00:01:41 +0000 Subject: (svn r11240) -Fix [FS#1323] (r11152): forgot to invert a test --- src/newgrf_industries.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newgrf_industries.cpp') 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; } -- cgit v1.2.3-54-g00ecf