diff options
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index a77203014..47bd8b219 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -24,7 +24,7 @@ #include "unmovable_map.h" #include "variables.h" #include "genworld.h" -#include "newgrf.h" +#include "newgrf_debug.h" #include "newgrf_house.h" #include "newgrf_commons.h" #include "newgrf_text.h" @@ -98,6 +98,7 @@ Town::~Town() } DeleteSubsidyWith(ST_TOWN, this->index); + DeleteNewGRFInspectWindow(GSF_FAKE_TOWNS, this->index); CargoPacket::InvalidateAllFrom(ST_TOWN, this->index); MarkWholeScreenDirty(); } @@ -2210,6 +2211,8 @@ static void DoClearTownHouseHelper(TileIndex tile, Town *t, HouseID house) DecreaseBuildingCount(t, house); DoClearSquare(tile); DeleteAnimatedTile(tile); + + DeleteNewGRFInspectWindow(GSF_HOUSES, tile); } /** |