(svn r10759) -Codechange: make the industry struct use the pool item class as super class.

This commit is contained in:
rubidium
2007-08-02 23:21:52 +00:00
parent c60988a1d5
commit 2f89fef353
6 changed files with 43 additions and 84 deletions

View File

@@ -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;
}