summaryrefslogtreecommitdiff
path: root/src/gui/partywindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/partywindow.cpp')
-rw-r--r--src/gui/partywindow.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/partywindow.cpp b/src/gui/partywindow.cpp
index 9c2d3161..08698dab 100644
--- a/src/gui/partywindow.cpp
+++ b/src/gui/partywindow.cpp
@@ -54,6 +54,16 @@ void PartyWindow::draw(gcn::Graphics *graphics)
Window::draw(graphics);
}
+PartyMember *PartyWindow::findMember(int id)
+{
+ PartyList::iterator it = mMembers.find(id);
+
+ if (it == mMembers.end())
+ return NULL;
+ else
+ return it->second;
+}
+
PartyMember *PartyWindow::findMember2(int id)
{
PartyMember *member = findMember(id);