(svn r17473) -Codechange: use the post destructor for destroying companies too instead of complicating the graph GUI invalidate code.

This commit is contained in:
rubidium
2009-09-08 12:27:27 +00:00
parent 535f71fc13
commit 472ed0dc76
3 changed files with 14 additions and 5 deletions

View File

@@ -103,6 +103,8 @@ struct Company : CompanyPool::PoolItem<&_company_pool> {
{
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)