summaryrefslogtreecommitdiff
path: root/src/party.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/party.cpp')
-rw-r--r--src/party.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/party.cpp b/src/party.cpp
index 75283916..155de2ba 100644
--- a/src/party.cpp
+++ b/src/party.cpp
@@ -145,7 +145,7 @@ void Party::removeFromMembers()
while(itr != itr_end)
{
Being *b = beingManager->findBeing((*itr)->getID());
- if (b->getType() == Being::PLAYER)
+ if (b && b->getType() == Being::PLAYER)
static_cast<Player*>(b)->setParty(NULL);
++itr;
}