summaryrefslogtreecommitdiff
path: root/industry.h
diff options
context:
space:
mode:
Diffstat (limited to 'industry.h')
-rw-r--r--industry.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/industry.h b/industry.h
index 65da9bd0e..e0620f35b 100644
--- a/industry.h
+++ b/industry.h
@@ -99,7 +99,7 @@ static inline IndustryID GetMaxIndustryIndex(void)
* _really_ returns the highest index. Now it just returns
* the next safe value we are sure about everything is below.
*/
- return _total_industries - 1;
+ return GetIndustryPoolSize() - 1;
}
static inline uint GetNumIndustries(void)