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:
Spp
2010-09-06 03:51:08 +02:00
parent a27f077197
commit c419c9f3cd

View File

@@ -917,16 +917,16 @@ bool LFGMgr::CheckCompatibility(LfgGuidList check, LfgProposalList *proposals)
LfgDungeonSet *compatibleDungeons = CheckCompatibleDungeons(&dungeonMap, &players);
dungeonMap.clear();
pqInfoMap.clear();
SetCompatibles(strGuids, true);
if (!compatibleDungeons || !compatibleDungeons->size())
{
if (compatibleDungeons)
delete compatibleDungeons;
players.clear();
rolesMap.clear();
SetCompatibles(strGuids, false);
return false;
}
SetCompatibles(strGuids, true);
// ----- Group is compatible, if we have MAXGROUPSIZE members then match is found
if (numPlayers != MAXGROUPSIZE)