Core/Dungeon Finder: Fix an error that made some groups being marked as compatibles when they are not
--HG-- branch : trunk
This commit is contained in:
@@ -917,16 +917,16 @@ bool LFGMgr::CheckCompatibility(LfgGuidList check, LfgProposalList *proposals)
|
|||||||
LfgDungeonSet *compatibleDungeons = CheckCompatibleDungeons(&dungeonMap, &players);
|
LfgDungeonSet *compatibleDungeons = CheckCompatibleDungeons(&dungeonMap, &players);
|
||||||
dungeonMap.clear();
|
dungeonMap.clear();
|
||||||
pqInfoMap.clear();
|
pqInfoMap.clear();
|
||||||
SetCompatibles(strGuids, true);
|
|
||||||
|
|
||||||
if (!compatibleDungeons || !compatibleDungeons->size())
|
if (!compatibleDungeons || !compatibleDungeons->size())
|
||||||
{
|
{
|
||||||
if (compatibleDungeons)
|
if (compatibleDungeons)
|
||||||
delete compatibleDungeons;
|
delete compatibleDungeons;
|
||||||
players.clear();
|
players.clear();
|
||||||
rolesMap.clear();
|
rolesMap.clear();
|
||||||
|
SetCompatibles(strGuids, false);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
SetCompatibles(strGuids, true);
|
||||||
|
|
||||||
// ----- Group is compatible, if we have MAXGROUPSIZE members then match is found
|
// ----- Group is compatible, if we have MAXGROUPSIZE members then match is found
|
||||||
if (numPlayers != MAXGROUPSIZE)
|
if (numPlayers != MAXGROUPSIZE)
|
||||||
|
|||||||
Reference in New Issue
Block a user