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 c944bcf9..34b042e8 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -129,7 +129,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);