summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-02-17 15:52:22 +0000
committerJared Adams <jaxad0127@gmail.com>2009-02-17 15:52:22 +0000
commit1631d1781668eb04dd125007725af3da1be7d9a3 (patch)
tree8c896d50b0bca02adeb90bae3100c8305a8d1be2 /src/being.cpp
parent66d2c83cf1197b0c22be070ff2c594a0a37ecfac (diff)
downloadmana-client-1631d1781668eb04dd125007725af3da1be7d9a3.tar.gz
mana-client-1631d1781668eb04dd125007725af3da1be7d9a3.tar.bz2
mana-client-1631d1781668eb04dd125007725af3da1be7d9a3.tar.xz
mana-client-1631d1781668eb04dd125007725af3da1be7d9a3.zip
Fix segfault when canceling new character dialog
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 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);