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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/partywindow.cpp b/src/gui/partywindow.cpp
index 3da59e9f..8958c1ec 100644
--- a/src/gui/partywindow.cpp
+++ b/src/gui/partywindow.cpp
@@ -126,7 +126,7 @@ void PartyWindow::updateMember(int id, const std::string &memberName,
member->avatar->setOnline(online);
Player *player = dynamic_cast<Player*>(beingManager->findBeing(id));
- if (player && player->getName() == memberName)
+ if (player && online)
player->setInParty(true);
}