From dc1f3ec3ec7d27f00b39316eed1a73bcfc4bf2df Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 17 Feb 2009 15:52:22 +0000 Subject: Fix segfault when canceling new character dialog --- src/being.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/being.cpp') 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); -- cgit v1.2.3-60-g2f50