diff options
author | rubidium <rubidium@openttd.org> | 2009-09-08 12:27:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-08 12:27:27 +0000 |
commit | 472ed0dc76894928570e8a04d79c7d22b5fdca15 (patch) | |
tree | bbe73d07fa4cfe6db2ebfb949a68d44db87a554a /src/company_base.h | |
parent | 535f71fc13ced5ed1f68886fcd5aebb47d35f53c (diff) | |
download | openttd-472ed0dc76894928570e8a04d79c7d22b5fdca15.tar.xz |
(svn r17473) -Codechange: use the post destructor for destroying companies too instead of complicating the graph GUI invalidate code.
Diffstat (limited to 'src/company_base.h')
-rw-r--r-- | src/company_base.h | 2 |
1 files changed, 2 insertions, 0 deletions
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) |