diff options
author | truelight <truelight@openttd.org> | 2006-08-22 21:17:19 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2006-08-22 21:17:19 +0000 |
commit | 93d5b5a35507be8944c929192421bbd2a43c6803 (patch) | |
tree | fa944d5ed41a5252bd051d2fc61ec3bd6800e94b /town.h | |
parent | ceb523c29f364f24b5e6b68b13249187ff6ac371 (diff) | |
download | openttd-93d5b5a35507be8944c929192421bbd2a43c6803.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 'town.h')
-rw-r--r-- | town.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -188,7 +188,7 @@ static inline TownID GetTownArraySize(void) * _really_ returns the highest index + 1. Now it just returns * the next safe value we are sure about everything is below. */ - return _total_towns + 1; + return _total_towns; } /** |