Fix #8349: Close depot vehicle list windows when closing the depot window

This commit is contained in:
Charles Pigott 2021-02-21 16:46:02 +00:00
parent 88959f5595
commit 3af407340e
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}