diff options
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 a9a837dbe..543c21654 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -166,6 +166,9 @@ Industry::~Industry() } END_TILE_LOOP(tile_cur, 42, 42, this->xy - TileDiff(21, 21)) } + /* don't let any disaster vehicle target invalid industry */ + ReleaseDisastersTargetingIndustry(this->index); + DecIndustryTypeCount(this->type); DeleteSubsidyWithIndustry(this->index); |