diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-05-12 13:36:34 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-12 13:37:39 -0600 |
commit | 81efdcf44bc591fb37b724aebff1421bb476556b (patch) | |
tree | d41dab11190a78f78049688b7a7ab22826c830c6 | |
parent | 38c827f67ba233ee11a964eff76714bbbedce4e9 (diff) | |
download | mana-81efdcf44bc591fb37b724aebff1421bb476556b.tar.gz mana-81efdcf44bc591fb37b724aebff1421bb476556b.tar.bz2 mana-81efdcf44bc591fb37b724aebff1421bb476556b.tar.xz mana-81efdcf44bc591fb37b724aebff1421bb476556b.zip |
Only set the right characters in party
Instead of every character on the account (for eAthena).
-rw-r--r-- | src/gui/partywindow.cpp | 3 |
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); } |