diff options
author | smatz <smatz@openttd.org> | 2009-07-05 13:20:05 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-07-05 13:20:05 +0000 |
commit | c861d9b64b2a63fa86ea87ac1e71f8f7341c694b (patch) | |
tree | f3aa246db5e1a5db2728facf1e79d65abe0dc75b /src/core/pool_func.hpp | |
parent | 4c6a4e3ab2fb4ebc6a5770c4373b68ff3ffa1d04 (diff) | |
download | openttd-c861d9b64b2a63fa86ea87ac1e71f8f7341c694b.tar.xz |
(svn r16745) -Fix [FS#3011]: invalidate JoinStation window after removing item from the pool
Diffstat (limited to 'src/core/pool_func.hpp')
-rw-r--r-- | src/core/pool_func.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/pool_func.hpp b/src/core/pool_func.hpp index 3ac28f472..1687b4faf 100644 --- a/src/core/pool_func.hpp +++ b/src/core/pool_func.hpp @@ -108,6 +108,7 @@ DEFINE_POOL_METHOD(void)::FreeItem(size_t index) this->data[index] = NULL; this->first_free = min(this->first_free, index); this->items--; + if (!this->cleaning) Titem::PostDestructor(index); } DEFINE_POOL_METHOD(void)::CleanPool() |