summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/beingequipbackend.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/beingequipbackend.cpp b/src/beingequipbackend.cpp
index 3092cd47e..9e0516610 100644
--- a/src/beingequipbackend.cpp
+++ b/src/beingequipbackend.cpp
@@ -50,7 +50,11 @@ BeingEquipBackend::BeingEquipBackend(Being *const being)
BeingEquipBackend::~BeingEquipBackend()
{
- clear();
+ for (int i = 0; i < EQUIPMENT_SIZE; i++)
+ {
+ delete mEquipment[i];
+ mEquipment[i] = nullptr;
+ }
}
void BeingEquipBackend::clear()