summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-11-10 00:42:25 +0000
committerglx <glx@openttd.org>2007-11-10 00:42:25 +0000
commit466193c5742761d5e45ca5b4e34e3cab8e62affc (patch)
treeba3b84946602bef17816f90f7f4ee6b52bd88e1e /src/newgrf_industries.cpp
parentb02337bbe09b0c26b6454744577f5045d4c9d63d (diff)
downloadopenttd-466193c5742761d5e45ca5b4e34e3cab8e62affc.tar.xz
(svn r11398) -Fix [FS#1414]: industry variables 67 and 68 return was incorrect
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r--src/newgrf_industries.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp
index 3fda15112..9181cc643 100644
--- a/src/newgrf_industries.cpp
+++ b/src/newgrf_industries.cpp
@@ -157,6 +157,7 @@ static uint32 GetCountAndDistanceOfClosestInstance(byte param_setID, byte layout
/* Fall through */
default: //use the grfid specified in register 100h
+ SETBIT(param_setID, 7); // bit 7 means it is not an old type
ind_index = MapNewGRFIndustryType(param_setID, GrfID);
break;
}