Changeset - r24867:37375cfefaf1
[Not reviewed]
master
0 1 0
Charles Pigott - 3 years ago 2021-02-21 16:46:02
charlespigott@googlemail.com
Fix #8349: Close depot vehicle list windows when closing the depot window
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/depot_gui.cpp
Show inline comments
 
@@ -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);
 
	}
 

	
0 comments (0 inline, 0 general)