diff -r 51db351a3313 -r a590f7f0edb3 src/depot.cpp --- a/src/depot.cpp Sun Aug 05 17:43:04 2007 +0000 +++ b/src/depot.cpp Sun Aug 05 21:20:55 2007 +0000 @@ -37,6 +37,8 @@ */ Depot::~Depot() { + if (CleaningPool()) return; + /* Clear the depot from all order-lists */ RemoveOrderFromAllVehicles(OT_GOTO_DEPOT, this->index);