summaryrefslogtreecommitdiff
path: root/src/party.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/party.cpp')
-rw-r--r--src/party.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/party.cpp b/src/party.cpp
index 6bbd0f6b..9a661e5b 100644
--- a/src/party.cpp
+++ b/src/party.cpp
@@ -145,6 +145,21 @@ void Party::removeMember(const std::string &name)
}
}
+void Party::removeFromMembers()
+{
+ MemberList::iterator itr = mMembers.begin(),
+ itr_end = mMembers.end();
+ while(itr != itr_end)
+ {
+ Player *p = dynamic_cast<Player*>(beingManager->findBeing((*itr)->getID()));
+ if (p)
+ {
+ p->setParty(NULL);
+ }
+ ++itr;
+ }
+}
+
Avatar *Party::getAvatarAt(int index)
{
return mMembers[index];