aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpp <none@none>2010-10-25 11:26:22 +0200
committerSpp <none@none>2010-10-25 11:26:22 +0200
commitb1d759e79f43ab9321982a05863f9e344e43d697 (patch)
treed8845394bbb8ea10995d59c04c3c9d7aff27d28d
parent18de18e7b99f1e06b2f801bd550d82e0bfb553d4 (diff)
Core/Dungeon Finder: Fix proposal window now being removed after a proposal success
--HG-- branch : trunk
-rwxr-xr-xsrc/server/game/DungeonFinding/LFGMgr.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp
index 24d3ae3070d..3f8277ec235 100755
--- a/src/server/game/DungeonFinding/LFGMgr.cpp
+++ b/src/server/game/DungeonFinding/LFGMgr.cpp
@@ -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();