diff options
| author | Spp <none@none> | 2010-08-18 00:32:11 +0200 |
|---|---|---|
| committer | Spp <none@none> | 2010-08-18 00:32:11 +0200 |
| commit | 7a13043af4f6f7372a6fae0fa67fb6147f5d7b3e (patch) | |
| tree | 186cb781a556a834b13caec069013bd7e980850d /src | |
| parent | a4af5d5567483d643a9eb63820e126a0bc364ea9 (diff) | |
Dungeon Finder: Properly remove from current and new queues after a proposal was found (Better fix than b70906fded)
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/DungeonFinding/LFGMgr.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp index 98a2ddb1916..4ff7e80a06c 100644 --- a/src/server/game/DungeonFinding/LFGMgr.cpp +++ b/src/server/game/DungeonFinding/LFGMgr.cpp @@ -253,10 +253,12 @@ void LFGMgr::Update(uint32 diff) LfgProposal *pProposal = *proposals.begin(); // TODO: Create algorithm to select better group based on GS (uses to be good tank with bad healer and viceversa) - // Remove groups in the proposal from the queue + // Remove groups in the proposal new and current queues (not from queue map) for (LfgGuidList::const_iterator it = pProposal->queues.begin(); it != pProposal->queues.end(); ++it) - RemoveFromQueue(*it); - + { + m_currentQueue.remove(*it); + m_newToQueue.remove(*it); + } m_Proposals[++m_lfgProposalId] = pProposal; uint32 lowGuid = 0; |
