Core/Dungeon Finder: Fix an error that prevented lfg groups to find a new proposal with queued groups

- Also fix a typo in previous Dungeon Finder commit

Updates issue 3465

--HG--
branch : trunk
This commit is contained in:
Spp
2010-09-06 03:03:21 +02:00
parent 62673ec25e
commit 56940bb4a4
+4 -1
View File
@@ -1182,7 +1182,7 @@ void LFGMgr::RemoveFromCompatibles(uint64 guid)
/// <param name="bool">compatibles or not</param>
void LFGMgr::SetCompatibles(std::string key, bool compatibles)
{
sLog.outDebug("LFGMgr::GetCompatibles: (%s): %d", key.c_str(), LfgAnswer(compatibles));
sLog.outDebug("LFGMgr::SetCompatibles: (%s): %d", key.c_str(), LfgAnswer(compatibles));
m_CompatibleMap[key] = LfgAnswer(compatibles);
}
@@ -1423,7 +1423,10 @@ void LFGMgr::UpdateProposal(uint32 proposalId, uint32 lowGuid, bool accept)
sObjectMgr.AddGroup(grp);
}
else if (plr->GetGroup() != grp)
{
grp->SetLfgQueued(false);
grp->AddMember(plr->GetGUID(), plr->GetName());
}
plr->SetLfgUpdate(true);
// Update timers
role = plr->GetLfgRoles();