(svn r10759) -Codechange: make the industry struct use the pool item class as super class.
This commit is contained in:
@@ -462,7 +462,7 @@ static Town *AiFindRandomTown()
|
||||
static Industry *AiFindRandomIndustry()
|
||||
{
|
||||
int num = RandomRange(GetMaxIndustryIndex());
|
||||
if (IsValidIndustry(GetIndustry(num))) return GetIndustry(num);
|
||||
if (IsValidIndustryID(num)) return GetIndustry(num);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user