From 07abd88c7e3d606aaa0c8c7387c398d93daae445 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Wed, 28 Jul 2010 09:48:16 -0600 Subject: Add some null being checks and cleanup some related code Reviewed-by: Chuck Miller --- src/party.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/party.cpp') diff --git a/src/party.cpp b/src/party.cpp index 77174d52..99295792 100644 --- a/src/party.cpp +++ b/src/party.cpp @@ -144,7 +144,8 @@ void Party::removeFromMembers() while(itr != itr_end) { Being *b = actorSpriteManager->findBeing((*itr)->getID()); - b->setParty(NULL); + if (b) + b->setParty(NULL); ++itr; } } -- cgit v1.2.3-70-g09d2