1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-18 09:52:44 +01:00

(svn r14746) -Fix: don't let any disaster vehicle (Helicopter or Airplane) target invalid industry

This commit is contained in:
smatz
2008-12-26 19:37:50 +00:00
parent 1721222080
commit 73ca72922c
3 changed files with 21 additions and 0 deletions

View File

@@ -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);