diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-02-17 15:52:22 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-02-17 15:52:22 +0000 |
commit | 1631d1781668eb04dd125007725af3da1be7d9a3 (patch) | |
tree | 8c896d50b0bca02adeb90bae3100c8305a8d1be2 /src | |
parent | 66d2c83cf1197b0c22be070ff2c594a0a37ecfac (diff) | |
download | mana-1631d1781668eb04dd125007725af3da1be7d9a3.tar.gz mana-1631d1781668eb04dd125007725af3da1be7d9a3.tar.bz2 mana-1631d1781668eb04dd125007725af3da1be7d9a3.tar.xz mana-1631d1781668eb04dd125007725af3da1be7d9a3.zip |
Fix segfault when canceling new character dialog
Diffstat (limited to 'src')
-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 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); |