diff options
Diffstat (limited to 'src/resources/inventory/complexinventory.cpp')
-rw-r--r-- | src/resources/inventory/complexinventory.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resources/inventory/complexinventory.cpp b/src/resources/inventory/complexinventory.cpp index 4d77cfdde..c6037fe38 100644 --- a/src/resources/inventory/complexinventory.cpp +++ b/src/resources/inventory/complexinventory.cpp @@ -161,6 +161,7 @@ void ComplexInventory::setItem(const int index, equipped); item2->setInvIndex(index); item->addChild(item2, quantity); + delete item2; mItems[index] = item; mUsed ++; |