Merge branch 'master' into jgrpp

This commit is contained in:
Jonathan G Rennison
2021-02-21 19:51:00 +00:00
7 changed files with 36 additions and 47 deletions

View File

@@ -296,6 +296,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);
}