(svn r11240) -Fix [FS#1323] (r11152): forgot to invert a test
authorglx
Wed, 10 Oct 2007 00:01:41 +0000
changeset 8202 ec7e5b2d35c9
parent 8201 9bb285e50530
child 8203 c2fa2ac2c65d
(svn r11240) -Fix [FS#1323] (r11152): forgot to invert a test
src/newgrf_industries.cpp
--- 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;
 	}