diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-17 20:09:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-17 21:17:11 +0300 |
commit | 6f04d606ef6d9a372f803200f382b582780679b8 (patch) | |
tree | 7be2759b1a4e1a6e9968b1f130e0452f1bc7408d | |
parent | 5b5257728500b358300f6e8824927c29d6b09618 (diff) | |
download | mv-6f04d606ef6d9a372f803200f382b582780679b8.tar.gz mv-6f04d606ef6d9a372f803200f382b582780679b8.tar.bz2 mv-6f04d606ef6d9a372f803200f382b582780679b8.tar.xz mv-6f04d606ef6d9a372f803200f382b582780679b8.zip |
dont call virtual function in beingequipbackend destructor.
-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() |