(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("");
 | 
				
			||||||
	print("--Industry--");
 | 
						print("--Industry--");
 | 
				
			||||||
	print("  GetMaxIndustryID():  " + AIIndustry.GetMaxIndustryID());
 | 
					 | 
				
			||||||
	print("  GetIndustryCount():  " + AIIndustry.GetIndustryCount());
 | 
						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++;
 | 
							if (AIIndustry.IsValidIndustry(i)) j++;
 | 
				
			||||||
		print("  Industry " + i);
 | 
							print("  Industry " + i);
 | 
				
			||||||
		print("    IsValidIndustry(): " + AIIndustry.IsValidIndustry(i));
 | 
							print("    IsValidIndustry(): " + AIIndustry.IsValidIndustry(i));
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5797,13 +5797,7 @@
 | 
				
			|||||||
  HasWagonRemoval():        false
 | 
					  HasWagonRemoval():        false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
--Industry--
 | 
					--Industry--
 | 
				
			||||||
  GetMaxIndustryID():  71
 | 
					 | 
				
			||||||
  GetIndustryCount():  71
 | 
					  GetIndustryCount():  71
 | 
				
			||||||
  Industry -1
 | 
					 | 
				
			||||||
    IsValidIndustry(): false
 | 
					 | 
				
			||||||
    GetName():         (null : 0x00000000)
 | 
					 | 
				
			||||||
    GetLocation():     -1
 | 
					 | 
				
			||||||
    IsCargoAccepted(): false
 | 
					 | 
				
			||||||
  Industry 0
 | 
					  Industry 0
 | 
				
			||||||
    IsValidIndustry(): true
 | 
					    IsValidIndustry(): true
 | 
				
			||||||
    GetName():         Kennville Oil Refinery
 | 
					    GetName():         Kennville Oil Refinery
 | 
				
			||||||
@@ -6513,11 +6507,6 @@
 | 
				
			|||||||
	   GetLastMonthProduction():  -1
 | 
						   GetLastMonthProduction():  -1
 | 
				
			||||||
	   GetLastMonthTransported(): -1
 | 
						   GetLastMonthTransported(): -1
 | 
				
			||||||
	   GetStockpiledCargo():      0
 | 
						   GetStockpiledCargo():      0
 | 
				
			||||||
  Industry 71
 | 
					 | 
				
			||||||
    IsValidIndustry(): false
 | 
					 | 
				
			||||||
    GetName():         (null : 0x00000000)
 | 
					 | 
				
			||||||
    GetLocation():     -1
 | 
					 | 
				
			||||||
    IsCargoAccepted(): false
 | 
					 | 
				
			||||||
  Valid Industries:    71
 | 
					  Valid Industries:    71
 | 
				
			||||||
  GetIndustryCount():  71
 | 
					  GetIndustryCount():  71
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user