diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-02-17 15:52:22 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-02-17 19:02:38 -0700 |
commit | dc1f3ec3ec7d27f00b39316eed1a73bcfc4bf2df (patch) | |
tree | f63ace3121017a3f5f31043c605f53dbb657d8d1 | |
parent | ed96706d8080049dc20d1487f6165ed9bd77306b (diff) | |
download | mana-dc1f3ec3ec7d27f00b39316eed1a73bcfc4bf2df.tar.gz mana-dc1f3ec3ec7d27f00b39316eed1a73bcfc4bf2df.tar.bz2 mana-dc1f3ec3ec7d27f00b39316eed1a73bcfc4bf2df.tar.xz mana-dc1f3ec3ec7d27f00b39316eed1a73bcfc4bf2df.zip |
Fix segfault when canceling new character dialog
-rw-r--r-- | src/being.cpp | 2 |
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); |