From 5606bdd9ab35cd6c2bc9762ce7e3a98a0f980c8d Mon Sep 17 00:00:00 2001 From: Spp Date: Wed, 6 Oct 2010 17:31:54 +0200 Subject: Core/Dungeon Finder: Add log error when no areatrigger found for map and difficulty --HG-- branch : trunk --- src/server/game/DungeonFinding/LFGMgr.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp index e54304fd403..b4e233fd455 100644 --- a/src/server/game/DungeonFinding/LFGMgr.cpp +++ b/src/server/game/DungeonFinding/LFGMgr.cpp @@ -1868,7 +1868,10 @@ void LFGMgr::TeleportPlayer(Player* plr, bool out, bool fromOpcode /*= false*/) { AreaTrigger const* at = sObjectMgr.GetMapEntranceTrigger(dungeon->map); if (!at) + { + sLog.outError("LfgMgr::TeleportPlayer: Failed to teleport [" UI64FMTD "]: No areatrigger found for map: %u difficulty: %u", plr->GetGUID(), dungeon->map, dungeon->difficulty); error = LFG_TELEPORTERROR_INVALID_LOCATION; + } else { mapid = at->target_mapId; @@ -1892,7 +1895,7 @@ void LFGMgr::TeleportPlayer(Player* plr, bool out, bool fromOpcode /*= false*/) else { error = LFG_TELEPORTERROR_INVALID_LOCATION; - sLog.outError("LfgMgr::TeleportPlayer: Failed to teleport [" UI64FMTD "] to map %u: ", plr->GetGUID(), mapid); + sLog.outError("LfgMgr::TeleportPlayer: Failed to teleport [" UI64FMTD "] to map %u: ", plr->GetGUID(), mapid); } } } -- cgit v1.2.3