summaryrefslogtreecommitdiff
path: root/industry.h
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-08-22 21:17:19 +0000
committertruelight <truelight@openttd.org>2006-08-22 21:17:19 +0000
commit42a0c0b3fe871e9d4a6a2cde646777d924aa5ccb (patch)
treefa944d5ed41a5252bd051d2fc61ec3bd6800e94b /industry.h
parenta21b2750bdf400c43ebf29a839428e0743086185 (diff)
downloadopenttd-42a0c0b3fe871e9d4a6a2cde646777d924aa5ccb.tar.xz
(svn r6058) -Fix: Get(Industry|Town)ArraySize could never return 0
Note: _total_towns and _total_industries willb e removed soon, so this 'hack' is okay, for now ;)
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 2b642dece..e4cbaa628 100644
--- a/industry.h
+++ b/industry.h
@@ -104,7 +104,7 @@ static inline IndustryID GetIndustryArraySize(void)
* _really_ returns the highest index + 1. Now it just returns
* the next safe value we are sure about everything is below.
*/
- return _total_industries + 1;
+ return _total_industries;
}
/**