mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 19:31:59 +01:00
Dungeon Finder: Add null check log to track an error (Will only appear after a server crash with Lfg groups)
--HG-- branch : trunk
This commit is contained in:
@@ -1395,7 +1395,13 @@ void LFGMgr::BuildLfgRoleCheck(WorldPacket &data, LfgRoleCheck *pRoleCheck)
|
||||
for (LfgDungeonSet::iterator it = pRoleCheck->dungeons.begin(); it != pRoleCheck->dungeons.end(); ++it)
|
||||
{
|
||||
dungeon = sLFGDungeonStore.LookupEntry(*it); // not null - been checked at join time
|
||||
data << uint32(dungeon->Entry()); // Dungeon
|
||||
if (!dungeon)
|
||||
{
|
||||
sLog.outError("LFGMgr::BuildLfgRoleCheck: Dungeon %u does not exist in dbcs", *it);
|
||||
data << uint32(0);
|
||||
}
|
||||
else
|
||||
data << uint32(dungeon->Entry()); // Dungeon
|
||||
}
|
||||
|
||||
data << uint8(pRoleCheck->roles.size()); // Players in group
|
||||
|
||||
Reference in New Issue
Block a user