aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSpp <none@none>2010-08-17 13:36:09 +0200
committerSpp <none@none>2010-08-17 13:36:09 +0200
commitc23bb8c58de7d4395d30abef5ceb87c7b2270ea6 (patch)
tree1f996c761882c6ff77d6d75e80a575e41d625787 /src
parent54b4345481013cec1b9d49dab48cb8f583ea249d (diff)
Dungeon Finder: Add null check log to track an error (Will only appear after a server crash with Lfg groups)
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/server/game/DungeonFinding/LFGMgr.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp
index 5893916ce4b..98a2ddb1916 100644
--- a/src/server/game/DungeonFinding/LFGMgr.cpp
+++ b/src/server/game/DungeonFinding/LFGMgr.cpp
@@ -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