diff options
author | terkhen <terkhen@openttd.org> | 2011-06-12 20:47:45 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2011-06-12 20:47:45 +0000 |
commit | 00e5c1df18449992cc974b99c61a44d1385bf4a7 (patch) | |
tree | 7433db92049848236fe05f18b99d6f80c99442c6 /src/industry_cmd.cpp | |
parent | 9f55abf51aac0f408e60d905fb2ac1b8a1405bb9 (diff) | |
download | openttd-00e5c1df18449992cc974b99c61a44d1385bf4a7.tar.xz |
(svn r22567) -Codechange: Store persistent storages inside a pool.
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 616dd317c..f01241a05 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -167,6 +167,9 @@ Industry::~Industry() /* don't let any disaster vehicle target invalid industry */ ReleaseDisastersTargetingIndustry(this->index); + /* Clear the persistent storage. */ + delete this->psa; + DecIndustryTypeCount(this->type); DeleteIndustryNews(this->index); |