From 08a62f19b808a347aae56b4f5a689233c6a03db0 Mon Sep 17 00:00:00 2001 From: WishToDie Date: Thu, 9 Apr 2015 18:29:20 +0300 Subject: Update LFGMgr.cpp Core/LFGMgr: Fix crash in e743f4a479ce7ddd3f13d51ca1c19a591c803fc0 --- src/server/game/DungeonFinding/LFGMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp index 7112aaeaaee..9a89e040a55 100644 --- a/src/server/game/DungeonFinding/LFGMgr.cpp +++ b/src/server/game/DungeonFinding/LFGMgr.cpp @@ -1267,7 +1267,7 @@ void LFGMgr::TeleportPlayer(Player* player, bool out, bool fromOpcode /*= false* player->TeleportToBGEntryPoint(); // in the case were we are the last in lfggroup then we must disband when porting out of the instance - if (group->GetMembersCount() == 1) + if (group && group->GetMembersCount() == 1) { group->Disband(); TC_LOG_DEBUG("lfg.teleport", "Player %s is last in lfggroup so we disband the group.", -- cgit v1.2.3