diff options
author | glx <glx@openttd.org> | 2007-10-10 00:01:41 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2007-10-10 00:01:41 +0000 |
commit | b398b6c71876bcd0f2d929861549e28a920e9a5e (patch) | |
tree | 90a2bbe848242e75f7efab13152d9a5eafb8d91f /src | |
parent | 401048898e502fc4dba112039402c37ab949682f (diff) | |
download | openttd-b398b6c71876bcd0f2d929861549e28a920e9a5e.tar.xz |
(svn r11240) -Fix [FS#1323] (r11152): forgot to invert a test
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; } |