From 472ed0dc76894928570e8a04d79c7d22b5fdca15 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 8 Sep 2009 12:27:27 +0000 Subject: (svn r17473) -Codechange: use the post destructor for destroying companies too instead of complicating the graph GUI invalidate code. --- src/company_base.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/company_base.h') diff --git a/src/company_base.h b/src/company_base.h index 61aaae3c1..919ad772a 100644 --- a/src/company_base.h +++ b/src/company_base.h @@ -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) -- cgit v1.2.3-54-g00ecf