diff --git a/src/Library/CreatureData/Talent.hpp b/src/Library/CreatureData/Talent.hpp index f9ee41d..6ce963f 100644 --- a/src/Library/CreatureData/Talent.hpp +++ b/src/Library/CreatureData/Talent.hpp @@ -15,6 +15,12 @@ namespace CreatureLib::Library { [[nodiscard]] inline const ArbUt::StringView& GetEffect() const noexcept { return _effect; } [[nodiscard]] inline const ArbUt::List& GetParameters() const noexcept { return _parameters; } + ~Talent() noexcept { + for (auto p : _parameters) { + delete p; + } + } + private: ArbUt::StringView _name; ArbUt::StringView _effect;