From 4e7be9f904f70e4a2e3d598602d03cddeaef8a74 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 23 Jan 2005 16:24:39 +0000 Subject: Uninitialized variable and free/delete/delete[] mismatch fixes. --- src/being.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/being.cpp') 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; -- cgit v1.2.3-70-g09d2