(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 ;)
This commit is contained in:
truelight
2006-08-22 21:17:19 +00:00
parent a21b2750bd
commit 42a0c0b3fe
4 changed files with 6 additions and 8 deletions

View File

@@ -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;
}
/**