@@ -100,12 +100,14 @@ struct Company : CompanyPool::PoolItem<&
}
static FORCEINLINE bool IsHumanID(size_t index)
{
return !Company::Get(index)->is_ai;
static void PostDestructor(size_t index);
};
#define FOR_ALL_COMPANIES_FROM(var, start) FOR_ALL_ITEMS_FROM(Company, company_index, var, start)
#define FOR_ALL_COMPANIES(var) FOR_ALL_COMPANIES_FROM(var, 0)
Money CalculateCompanyValue(const Company *c);