diff --git a/src/Library/AttackLibrary.hpp b/src/Library/AttackLibrary.hpp index 2c59a2b..2b4177f 100644 --- a/src/Library/AttackLibrary.hpp +++ b/src/Library/AttackLibrary.hpp @@ -13,6 +13,9 @@ namespace CreatureLib::Library { AttackLibrary() = default; ~AttackLibrary(){ + for (auto attack: _attacks){ + delete attack.second; + } _attacks.clear(); }