summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index b9632424..67d8cd14 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -175,7 +175,7 @@ void Being::setPath(PATH_NODE *path)
}
PATH_NODE *pn = path;
this->path = path->next;
- free(pn);
+ delete pn;
x = this->path->x;
y = this->path->y;
action = WALK;