(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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user