diff options
| author | Spp <none@none> | 2010-10-25 12:21:42 +0200 |
|---|---|---|
| committer | Spp <none@none> | 2010-10-25 12:21:42 +0200 |
| commit | 3ac979e62409f0a373867838272a761490d808d6 (patch) | |
| tree | 6f8ff47d132cf4cf556520ad6f4af6e139473d3d | |
| parent | 8ab5a04b7f346b9a7f3efa207639289b8a7fae12 (diff) | |
Core/Dungeon Finder: Fix a crash in UpdateProposal (added in 66a8af8214)
Closes issue 4564
--HG--
branch : trunk
| -rwxr-xr-x | src/server/game/DungeonFinding/LFGMgr.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp index 3f8277ec235..3d7e1ab7d21 100755 --- a/src/server/game/DungeonFinding/LFGMgr.cpp +++ b/src/server/game/DungeonFinding/LFGMgr.cpp @@ -1509,15 +1509,19 @@ 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); + 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 (plr->GetGroup() != grp) { - plr->GetGroup()->SetLfgQueued(false); - plr->RemoveFromGroup(); + plr->GetSession()->SendLfgUpdatePlayer(LFG_UPDATETYPE_GROUP_FOUND); + plr->SetLfgUpdate(false); } if (!grp) |
