From 0529250e509e852ab09246248fb310523d637280 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Fri, 4 Dec 2015 01:39:40 +0000 Subject: [PATCH] Fix crash when a station is deleted with the departure boards window open. --- src/station.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/station.cpp b/src/station.cpp index 456262dea4..5b040d9853 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -49,6 +49,7 @@ BaseStation::~BaseStation() DeleteWindowById(WC_ROADVEH_LIST, VehicleListIdentifier(VL_STATION_LIST, VEH_ROAD, this->owner, this->index).Pack()); DeleteWindowById(WC_SHIPS_LIST, VehicleListIdentifier(VL_STATION_LIST, VEH_SHIP, this->owner, this->index).Pack()); DeleteWindowById(WC_AIRCRAFT_LIST, VehicleListIdentifier(VL_STATION_LIST, VEH_AIRCRAFT, this->owner, this->index).Pack()); + DeleteWindowById(WC_DEPARTURES_BOARD, this->index); this->sign.MarkDirty(); }