mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-13 01:29:10 +00:00
Fix #8349: Close depot vehicle list windows when closing the depot window
This commit is contained in:
@@ -294,6 +294,7 @@ struct DepotWindow : Window {
|
|||||||
~DepotWindow()
|
~DepotWindow()
|
||||||
{
|
{
|
||||||
DeleteWindowById(WC_BUILD_VEHICLE, this->window_number);
|
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);
|
OrderBackup::Reset(this->window_number);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user