From faaafb5e1da3240abac16fff27eed5fcde8f7290 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 25 Jan 2020 13:09:09 +0100 Subject: [PATCH] Make AttackData polymorphic --- src/Library/Attacks/AttackData.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Library/Attacks/AttackData.hpp b/src/Library/Attacks/AttackData.hpp index d869b0d..82d13cf 100644 --- a/src/Library/Attacks/AttackData.hpp +++ b/src/Library/Attacks/AttackData.hpp @@ -22,6 +22,7 @@ namespace CreatureLib::Library { public: AttackData(std::string name, uint8_t type, AttackCategory category, uint8_t power, uint8_t accuracy, uint8_t baseUsage, AttackTarget target, uint8_t priority, std::unordered_set flags); + virtual ~AttackData() = default; inline const std::string& GetName() const { return _name; } inline const uint8_t GetType() const { return _type; }