From 6f04d606ef6d9a372f803200f382b582780679b8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 17 Oct 2013 20:09:06 +0300 Subject: dont call virtual function in beingequipbackend destructor. --- src/beingequipbackend.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() -- cgit v1.2.3-70-g09d2