summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/ai/regression/regression.nut5
-rw-r--r--bin/ai/regression/regression.txt11
2 files changed, 3 insertions, 13 deletions
diff --git a/bin/ai/regression/regression.nut b/bin/ai/regression/regression.nut
index 87a0e0e58..d873d3708 100644
--- a/bin/ai/regression/regression.nut
+++ b/bin/ai/regression/regression.nut
@@ -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));
diff --git a/bin/ai/regression/regression.txt b/bin/ai/regression/regression.txt
index 47c52a3fb..9c58e8965 100644
--- a/bin/ai/regression/regression.txt
+++ b/bin/ai/regression/regression.txt
@@ -5797,13 +5797,7 @@
HasWagonRemoval(): false
--Industry--
- GetMaxIndustryID(): 71
GetIndustryCount(): 71
- Industry -1
- IsValidIndustry(): false
- GetName(): (null : 0x00000000)
- GetLocation(): -1
- IsCargoAccepted(): false
Industry 0
IsValidIndustry(): true
GetName(): Kennville Oil Refinery
@@ -6513,11 +6507,6 @@
GetLastMonthProduction(): -1
GetLastMonthTransported(): -1
GetStockpiledCargo(): 0
- Industry 71
- IsValidIndustry(): false
- GetName(): (null : 0x00000000)
- GetLocation(): -1
- IsCargoAccepted(): false
Valid Industries: 71
GetIndustryCount(): 71