aboutsummaryrefslogtreecommitdiff
path: root/backend/Location.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-30 21:51:06 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-30 21:51:06 +0100
commit80ed1262bd654fe2de30389f97a985b5f2c1d783 (patch)
tree020b1b63d637e07882c9a10d81fe2ac04ce82bcc /backend/Location.cpp
parentc45a436fc594101f676cfabe90225d825d935fec (diff)
add more containers and fix use after free
Diffstat (limited to 'backend/Location.cpp')
-rw-r--r--backend/Location.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/backend/Location.cpp b/backend/Location.cpp
index 7246246..bfd2107 100644
--- a/backend/Location.cpp
+++ b/backend/Location.cpp
@@ -20,12 +20,6 @@ Direction random_direction(const Location & location) {
Location::Location(const String & name, const String & description) : name(name), description(description) { }
-Location::~Location() {
- safe_free(this->enemies);
- safe_free(this->hidden_objects);
- safe_free(this->visible_objects);
-}
-
void Location::set_name(const String & name) { this->name = name; }
const String & Location::get_name() const { return this->name; }