aboutsummaryrefslogtreecommitdiffstats
path: root/src/entity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index 05dc270..409b67f 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -43,4 +43,10 @@ Entity::Entity(int const& h) : hp(h) {
threshold = false;
}
-Entity::~Entity() {}
+Entity::~Entity()
+{
+ for (auto it = wp.begin(); it != wp.end(); ++it)
+ {
+ delete it->second;
+ }
+}