diff options
-rw-r--r-- | src/depot_gui.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 9571fbea1..4bc676268 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -294,6 +294,7 @@ struct DepotWindow : Window { ~DepotWindow() { DeleteWindowById(WC_BUILD_VEHICLE, this->window_number); + DeleteWindowById(GetWindowClassForVehicleType(this->type), VehicleListIdentifier(VL_DEPOT_LIST, this->type, this->owner, GetDepotIndex(this->window_number)).Pack(), false); OrderBackup::Reset(this->window_number); } |