summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-12 13:36:34 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-12 13:37:39 -0600
commit81efdcf44bc591fb37b724aebff1421bb476556b (patch)
treed41dab11190a78f78049688b7a7ab22826c830c6 /src
parent38c827f67ba233ee11a964eff76714bbbedce4e9 (diff)
downloadmana-client-81efdcf44bc591fb37b724aebff1421bb476556b.tar.gz
mana-client-81efdcf44bc591fb37b724aebff1421bb476556b.tar.bz2
mana-client-81efdcf44bc591fb37b724aebff1421bb476556b.tar.xz
mana-client-81efdcf44bc591fb37b724aebff1421bb476556b.zip
Only set the right characters in party
Instead of every character on the account (for eAthena).
Diffstat (limited to 'src')
-rw-r--r--src/gui/partywindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/partywindow.cpp b/src/gui/partywindow.cpp
index 317811ee..3da59e9f 100644
--- a/src/gui/partywindow.cpp
+++ b/src/gui/partywindow.cpp
@@ -125,7 +125,8 @@ void PartyWindow::updateMember(int id, const std::string &memberName,
member->avatar->setName(memberName);
member->avatar->setOnline(online);
- if (Player *player = dynamic_cast<Player*>(beingManager->findBeing(id)))
+ Player *player = dynamic_cast<Player*>(beingManager->findBeing(id));
+ if (player && player->getName() == memberName)
player->setInParty(true);
}