--- a/src/newgrf_industries.cpp Tue Oct 09 21:40:15 2007 +0000
+++ b/src/newgrf_industries.cpp Wed Oct 10 00:01:41 2007 +0000
@@ -83,7 +83,7 @@
* @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;
}