diff options
Diffstat (limited to 'backend/Location.cpp')
-rw-r--r-- | backend/Location.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/Location.cpp b/backend/Location.cpp index 9add524..31df1e3 100644 --- a/backend/Location.cpp +++ b/backend/Location.cpp @@ -2,6 +2,8 @@ #include "Location.h" #include "ListIterator.h" +#include "Enemy.h" +#include "Object.h" #include "util.h" Location::Location(const char * name, const char * description) { @@ -12,6 +14,8 @@ Location::Location(const char * name, const char * description) { Location::~Location() { safe_free(this->name); safe_free(this->description); + safe_free(this->enemies); + safe_free(this->objects); } void Location::set_name(const char * name) { |