diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-07-28 09:48:16 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-07-28 09:51:49 -0600 |
commit | 07abd88c7e3d606aaa0c8c7387c398d93daae445 (patch) | |
tree | a497b93f613222f9447f820222c775909b760e74 /src/party.cpp | |
parent | 04cefb857e2738c103b81f8ac1502f344d84c16f (diff) | |
download | mana-07abd88c7e3d606aaa0c8c7387c398d93daae445.tar.gz mana-07abd88c7e3d606aaa0c8c7387c398d93daae445.tar.bz2 mana-07abd88c7e3d606aaa0c8c7387c398d93daae445.tar.xz mana-07abd88c7e3d606aaa0c8c7387c398d93daae445.zip |
Add some null being checks and cleanup some related code
Reviewed-by: Chuck Miller
Diffstat (limited to 'src/party.cpp')
-rw-r--r-- | src/party.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; } } |