diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/inventory.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/fullpipe/inventory.cpp b/engines/fullpipe/inventory.cpp index 8424e7e976..345a02c83e 100644 --- a/engines/fullpipe/inventory.cpp +++ b/engines/fullpipe/inventory.cpp @@ -94,6 +94,11 @@ Inventory2::~Inventory2() { } bool Inventory2::loadPartial(MfcArchive &file) { // Inventory2_SerializePartially + for (uint i = 0; i < _inventoryItems.size(); i++) + delete _inventoryItems[i]; + + _inventoryItems.clear(); + int numInvs = file.readUint32LE(); for (int i = 0; i < numInvs; i++) { |