summaryrefslogtreecommitdiff
path: root/src/beingmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/beingmanager.cpp')
-rw-r--r--src/beingmanager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/beingmanager.cpp b/src/beingmanager.cpp
index a92e3faf..79591ce6 100644
--- a/src/beingmanager.cpp
+++ b/src/beingmanager.cpp
@@ -182,7 +182,10 @@ void BeingManager::logic()
void BeingManager::clear()
{
if (player_node)
+ {
+ player_node->setTarget(0);
mBeings.remove(player_node);
+ }
delete_all(mBeings);
mBeings.clear();