(svn r22111) -Codechange/fix-ish: upon cleaning a pool a destructor should not delete items from other pools
This commit is contained in:
@@ -154,6 +154,16 @@ CargoList<Tinst>::~CargoList()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Empty the cargo list, but don't free the cargo packets;
|
||||
* the cargo packets are cleaned by CargoPacket's CleanPool.
|
||||
*/
|
||||
template <class Tinst>
|
||||
void CargoList<Tinst>::OnCleanPool()
|
||||
{
|
||||
this->packets.clear();
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the cached values to reflect the removal of this packet.
|
||||
* Decreases count and days_in_transit.
|
||||
|
Reference in New Issue
Block a user