mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-24 15:09:10 +00:00
(svn r15597) -Fix (r15563): regression wasn't updated after the removal of AIIndustry::GetMaxIndustryID().
This commit is contained in:
@@ -538,9 +538,10 @@ function Regression::Industry()
|
||||
|
||||
print("");
|
||||
print("--Industry--");
|
||||
print(" GetMaxIndustryID(): " + AIIndustry.GetMaxIndustryID());
|
||||
print(" GetIndustryCount(): " + AIIndustry.GetIndustryCount());
|
||||
for (local i = -1; i < AIIndustry.GetMaxIndustryID() + 1; i++) {
|
||||
local list = AIIndustryList();
|
||||
list.Sort(AIAbstractList.SORT_BY_ITEM, true);
|
||||
for (local i = list.Begin(); list.HasNext(); i = list.Next()) {
|
||||
if (AIIndustry.IsValidIndustry(i)) j++;
|
||||
print(" Industry " + i);
|
||||
print(" IsValidIndustry(): " + AIIndustry.IsValidIndustry(i));
|
||||
|
Reference in New Issue
Block a user