From 2a98f051c98ba74efe9fb66492a959da7f14eb7a Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 10 Nov 2019 14:33:26 +0100 Subject: [PATCH] Give ExecutingAttack a virtual destructor. --- src/Battling/Models/ExecutingAttack.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Battling/Models/ExecutingAttack.hpp b/src/Battling/Models/ExecutingAttack.hpp index a7f8bd8..0f5870d 100644 --- a/src/Battling/Models/ExecutingAttack.hpp +++ b/src/Battling/Models/ExecutingAttack.hpp @@ -67,6 +67,7 @@ namespace CreatureLib::Battling { LearnedAttack* _attack; Script* _script; public: + virtual ~ExecutingAttack() = default; TargetData& GetAttackDataForTarget(Creature* creature){ return _targets[creature];