From f56cdd44961b83f663da1c3ee13f89325b26bbd9 Mon Sep 17 00:00:00 2001 From: w1sht0l1v3 Date: Mon, 13 Apr 2015 19:27:12 +0300 Subject: Core/LFGMgr: Attempt to leave LFG the right way...i think... --- src/server/game/DungeonFinding/LFGMgr.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp index 024002ab88f..e971b99034b 100644 --- a/src/server/game/DungeonFinding/LFGMgr.cpp +++ b/src/server/game/DungeonFinding/LFGMgr.cpp @@ -1266,11 +1266,12 @@ void LFGMgr::TeleportPlayer(Player* player, bool out, bool fromOpcode /*= false* if (player->GetMapId() == uint32(dungeon->map)) player->TeleportToBGEntryPoint(); - // in the case were we are the last in lfggroup then we must disband when porting out of the instance + // in the case were we are the last in lfggroup then we must leave the queue and group when porting out of the instance if (group && group->GetMembersCount() == 1) { - group->Disband(); - TC_LOG_DEBUG("lfg.teleport", "Player %s is last in lfggroup so we disband the group.", + sLFGMgr->LeaveLfg(player->GetGUID()); + group->RemoveMember(player->GetGUID()); + TC_LOG_DEBUG("lfg.teleport", "Player %s is last in lfggroup so we leave the queue and the group.", player->GetName().c_str()); } -- cgit v1.2.3