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
+2 -2
View File
@@ -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)