aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw1sht0l1v3 <w1sht0l1v3@gmail.com>2015-04-13 19:27:12 +0300
committerw1sht0l1v3 <w1sht0l1v3@gmail.com>2015-04-13 19:27:12 +0300
commitf56cdd44961b83f663da1c3ee13f89325b26bbd9 (patch)
tree72558b320d2c89b68f39f076a0705e5def0e3895
parentc9e699961e37678b4da5ed6a8b396d72d90af883 (diff)
Core/LFGMgr: Attempt to leave LFG the right way...i think...
-rw-r--r--src/server/game/DungeonFinding/LFGMgr.cpp7
1 files changed, 4 insertions, 3 deletions
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());
}