Core/Dungeon Finder: Fix proposal window now being removed after a proposal success

--HG--
branch : trunk
This commit is contained in:
Spp
2010-10-25 11:26:22 +02:00
parent 18de18e7b9
commit b1d759e79f
+7 -8
View File
@@ -1508,19 +1508,18 @@ void LFGMgr::UpdateProposal(uint32 proposalId, uint32 lowGuid, bool accept)
plr = (*it);
if (sendUpdate)
plr->GetSession()->SendUpdateProposal(proposalId, pProposal);
plr->SetLfgUpdate(false);
if (plr->GetGroup())
{
plr->GetSession()->SendLfgUpdateParty(LFG_UPDATETYPE_GROUP_FOUND);
if (plr->GetGroup() != grp)
{
plr->GetGroup()->SetLfgQueued(false);
plr->RemoveFromGroup();
}
}
else
plr->GetSession()->SendLfgUpdatePlayer(LFG_UPDATETYPE_GROUP_FOUND);
plr->SetLfgUpdate(false);
if (plr->GetGroup() != grp)
{
plr->GetGroup()->SetLfgQueued(false);
plr->RemoveFromGroup();
}
if (!grp)
{
grp = new Group();