Core/Dungeon Finder: Fix a crash in UpdateProposal (added in 66a8af8214)
Closes issue 4564 --HG-- branch : trunk
This commit is contained in:
@@ -1509,16 +1509,20 @@ void LFGMgr::UpdateProposal(uint32 proposalId, uint32 lowGuid, bool accept)
|
||||
if (sendUpdate)
|
||||
plr->GetSession()->SendUpdateProposal(proposalId, pProposal);
|
||||
if (plr->GetGroup())
|
||||
{
|
||||
plr->GetSession()->SendLfgUpdateParty(LFG_UPDATETYPE_GROUP_FOUND);
|
||||
else
|
||||
plr->GetSession()->SendLfgUpdatePlayer(LFG_UPDATETYPE_GROUP_FOUND);
|
||||
|
||||
plr->SetLfgUpdate(false);
|
||||
if (plr->GetGroup() != grp)
|
||||
{
|
||||
plr->GetGroup()->SetLfgQueued(false);
|
||||
plr->RemoveFromGroup();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
plr->GetSession()->SendLfgUpdatePlayer(LFG_UPDATETYPE_GROUP_FOUND);
|
||||
plr->SetLfgUpdate(false);
|
||||
}
|
||||
|
||||
if (!grp)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user