Core/Dungeon Finder: Fix proposal window now being removed after a proposal success
--HG-- branch : trunk
This commit is contained in:
@@ -1508,19 +1508,18 @@ void LFGMgr::UpdateProposal(uint32 proposalId, uint32 lowGuid, bool accept)
|
|||||||
plr = (*it);
|
plr = (*it);
|
||||||
if (sendUpdate)
|
if (sendUpdate)
|
||||||
plr->GetSession()->SendUpdateProposal(proposalId, pProposal);
|
plr->GetSession()->SendUpdateProposal(proposalId, pProposal);
|
||||||
plr->SetLfgUpdate(false);
|
|
||||||
if (plr->GetGroup())
|
if (plr->GetGroup())
|
||||||
{
|
|
||||||
plr->GetSession()->SendLfgUpdateParty(LFG_UPDATETYPE_GROUP_FOUND);
|
plr->GetSession()->SendLfgUpdateParty(LFG_UPDATETYPE_GROUP_FOUND);
|
||||||
if (plr->GetGroup() != grp)
|
|
||||||
{
|
|
||||||
plr->GetGroup()->SetLfgQueued(false);
|
|
||||||
plr->RemoveFromGroup();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
plr->GetSession()->SendLfgUpdatePlayer(LFG_UPDATETYPE_GROUP_FOUND);
|
plr->GetSession()->SendLfgUpdatePlayer(LFG_UPDATETYPE_GROUP_FOUND);
|
||||||
|
|
||||||
|
plr->SetLfgUpdate(false);
|
||||||
|
if (plr->GetGroup() != grp)
|
||||||
|
{
|
||||||
|
plr->GetGroup()->SetLfgQueued(false);
|
||||||
|
plr->RemoveFromGroup();
|
||||||
|
}
|
||||||
|
|
||||||
if (!grp)
|
if (!grp)
|
||||||
{
|
{
|
||||||
grp = new Group();
|
grp = new Group();
|
||||||
|
|||||||
Reference in New Issue
Block a user