Core/Dungeon Finder: Fix 'unknown' player names after group being formed and teleported to dungeon
Original Patch by danik Closes issue 3846 --HG-- branch : trunk
This commit is contained in:
@@ -1566,7 +1566,6 @@ void LFGMgr::UpdateProposal(uint32 proposalId, uint32 lowGuid, bool accept)
|
|||||||
grp->SetDungeonDifficulty(Difficulty(dungeon->difficulty));
|
grp->SetDungeonDifficulty(Difficulty(dungeon->difficulty));
|
||||||
grp->SetLfgDungeonEntry(dungeon->Entry());
|
grp->SetLfgDungeonEntry(dungeon->Entry());
|
||||||
grp->SetLfgStatus(LFG_STATUS_NOT_SAVED);
|
grp->SetLfgStatus(LFG_STATUS_NOT_SAVED);
|
||||||
grp->SendUpdate();
|
|
||||||
|
|
||||||
// Remove players/groups from Queue
|
// Remove players/groups from Queue
|
||||||
for (LfgGuidList::const_iterator it = pProposal->queues.begin(); it != pProposal->queues.end(); ++it)
|
for (LfgGuidList::const_iterator it = pProposal->queues.begin(); it != pProposal->queues.end(); ++it)
|
||||||
@@ -1576,6 +1575,9 @@ void LFGMgr::UpdateProposal(uint32 proposalId, uint32 lowGuid, bool accept)
|
|||||||
for (LfgPlayerList::const_iterator it = players.begin(); it != players.end(); ++it)
|
for (LfgPlayerList::const_iterator it = players.begin(); it != players.end(); ++it)
|
||||||
TeleportPlayer(*it, false);
|
TeleportPlayer(*it, false);
|
||||||
|
|
||||||
|
// Update group info
|
||||||
|
grp->SendUpdate();
|
||||||
|
|
||||||
for (LfgProposalPlayerMap::const_iterator it = pProposal->players.begin(); it != pProposal->players.end(); ++it)
|
for (LfgProposalPlayerMap::const_iterator it = pProposal->players.begin(); it != pProposal->players.end(); ++it)
|
||||||
delete it->second;
|
delete it->second;
|
||||||
pProposal->players.clear();
|
pProposal->players.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user