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)
|
for (LfgDungeonSet::iterator it = pRoleCheck->dungeons.begin(); it != pRoleCheck->dungeons.end(); ++it)
|
||||||
{
|
{
|
||||||
dungeon = sLFGDungeonStore.LookupEntry(*it); // not null - been checked at join time
|
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
|
data << uint8(pRoleCheck->roles.size()); // Players in group
|
||||||
|
|||||||
Reference in New Issue
Block a user