summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-10-10 00:01:41 +0000
committerglx <glx@openttd.org>2007-10-10 00:01:41 +0000
commit129d5c6e8ab30cd2c7617b2bdd2755b7fbf06e1f (patch)
tree90a2bbe848242e75f7efab13152d9a5eafb8d91f /src/newgrf_industries.cpp
parentffbd818517b42f1280217fa8cfb344683c75d3f5 (diff)
downloadopenttd-129d5c6e8ab30cd2c7617b2bdd2755b7fbf06e1f.tar.xz
(svn r11240) -Fix [FS#1323] (r11152): forgot to invert a test
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r--src/newgrf_industries.cpp2
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;
}