diff options
-rw-r--r-- | src/beingequipbackend.cpp | 6 |
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() |