summaryrefslogtreecommitdiff
path: root/src/beingequipbackend.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-17 20:09:06 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-17 21:17:11 +0300
commit6f04d606ef6d9a372f803200f382b582780679b8 (patch)
tree7be2759b1a4e1a6e9968b1f130e0452f1bc7408d /src/beingequipbackend.cpp
parent5b5257728500b358300f6e8824927c29d6b09618 (diff)
downloadmanaverse-6f04d606ef6d9a372f803200f382b582780679b8.tar.gz
manaverse-6f04d606ef6d9a372f803200f382b582780679b8.tar.bz2
manaverse-6f04d606ef6d9a372f803200f382b582780679b8.tar.xz
manaverse-6f04d606ef6d9a372f803200f382b582780679b8.zip
dont call virtual function in beingequipbackend destructor.
Diffstat (limited to 'src/beingequipbackend.cpp')
-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()