From 1631d1781668eb04dd125007725af3da1be7d9a3 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') 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); -- cgit v1.2.3-70-g09d2