From 3af407340e53703d2ccf558112eb67438096add7 Mon Sep 17 00:00:00 2001 From: Charles Pigott Date: Sun, 21 Feb 2021 16:46:02 +0000 Subject: [PATCH] Fix #8349: Close depot vehicle list windows when closing the depot window --- src/depot_gui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 9571fbea11..4bc6762683 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); }