summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-02-17 15:52:22 +0000
committerIra Rice <irarice@gmail.com>2009-02-17 19:02:38 -0700
commitdc1f3ec3ec7d27f00b39316eed1a73bcfc4bf2df (patch)
treef63ace3121017a3f5f31043c605f53dbb657d8d1 /src/being.cpp
parented96706d8080049dc20d1487f6165ed9bd77306b (diff)
downloadmana-client-dc1f3ec3ec7d27f00b39316eed1a73bcfc4bf2df.tar.gz
mana-client-dc1f3ec3ec7d27f00b39316eed1a73bcfc4bf2df.tar.bz2
mana-client-dc1f3ec3ec7d27f00b39316eed1a73bcfc4bf2df.tar.xz
mana-client-dc1f3ec3ec7d27f00b39316eed1a73bcfc4bf2df.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 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);