summaryrefslogtreecommitdiff
path: root/src/depot_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r--src/depot_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index 0756eae2c..80774e900 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -291,11 +291,12 @@ struct DepotWindow : Window {
OrderBackup::Reset();
}
- ~DepotWindow()
+ void Close() override
{
DeleteWindowById(WC_BUILD_VEHICLE, this->window_number);
DeleteWindowById(GetWindowClassForVehicleType(this->type), VehicleListIdentifier(VL_DEPOT_LIST, this->type, this->owner, this->GetDepotIndex()).Pack(), false);
OrderBackup::Reset(this->window_number);
+ this->Window::Close();
}
/**