summaryrefslogtreecommitdiff
path: root/src/depot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/depot.cpp')
-rw-r--r--src/depot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/depot.cpp b/src/depot.cpp
index 05e2af3d4..13317e8a3 100644
--- a/src/depot.cpp
+++ b/src/depot.cpp
@@ -41,9 +41,9 @@ Depot::~Depot()
RemoveOrderFromAllVehicles(OT_GOTO_DEPOT, this->index);
/* Delete the depot-window */
- DeleteWindowById(WC_VEHICLE_DEPOT, this->xy);
+ CloseWindowById(WC_VEHICLE_DEPOT, this->xy);
/* Delete the depot list */
VehicleType vt = GetDepotVehicleType(this->xy);
- DeleteWindowById(GetWindowClassForVehicleType(vt), VehicleListIdentifier(VL_DEPOT_LIST, vt, GetTileOwner(this->xy), this->index).Pack());
+ CloseWindowById(GetWindowClassForVehicleType(vt), VehicleListIdentifier(VL_DEPOT_LIST, vt, GetTileOwner(this->xy), this->index).Pack());
}