summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/being.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 96bce027..45029a01 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -135,7 +135,7 @@ Being::~Being()
delete_all(mSprites);
clearPath();
- if (player_node->getTarget() == this)
+ if (player_node && player_node->getTarget() == this)
player_node->setTarget(NULL);
setMap(NULL);