mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 03:12:09 +01:00
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);
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user