equal
deleted
inserted
replaced
35 /** |
35 /** |
36 * Clean up a depot |
36 * Clean up a depot |
37 */ |
37 */ |
38 Depot::~Depot() |
38 Depot::~Depot() |
39 { |
39 { |
|
40 if (CleaningPool()) return; |
|
41 |
40 /* Clear the depot from all order-lists */ |
42 /* Clear the depot from all order-lists */ |
41 RemoveOrderFromAllVehicles(OT_GOTO_DEPOT, this->index); |
43 RemoveOrderFromAllVehicles(OT_GOTO_DEPOT, this->index); |
42 |
44 |
43 /* Delete the depot-window */ |
45 /* Delete the depot-window */ |
44 DeleteWindowById(WC_VEHICLE_DEPOT, this->xy); |
46 DeleteWindowById(WC_VEHICLE_DEPOT, this->xy); |