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:
Spp
2010-08-17 13:36:09 +02:00
parent 54b4345481
commit c23bb8c58d

View File

@@ -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