Dungeon Finder: Properly remove from current and new queues after a proposal was found (Better fix than b70906fded)

--HG--
branch : trunk
This commit is contained in:
Spp
2010-08-18 00:32:11 +02:00
parent a4af5d5567
commit 7a13043af4
+5 -3
View File
@@ -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;