aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWishToDie <w1sht0l1v3@gmail.com>2015-04-09 18:29:20 +0300
committerDDuarte <dnpd.dd@gmail.com>2015-04-14 01:02:15 +0100
commitabb9e5dd2981c497fc83932221b2ce81d8a5a668 (patch)
tree58db9121597d145d963b6f4b863d2af5359ce1d9 /src
parentd81b21a127f4440343ddf6039d6877c33a168942 (diff)
Update LFGMgr.cpp
Core/LFGMgr: Fix crash in e743f4a479ce7ddd3f13d51ca1c19a591c803fc0 (cherry picked from commit 08a62f19b808a347aae56b4f5a689233c6a03db0)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/DungeonFinding/LFGMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp
index 098b2d2995b..b077f3e6110 100644
--- a/src/server/game/DungeonFinding/LFGMgr.cpp
+++ b/src/server/game/DungeonFinding/LFGMgr.cpp
@@ -1271,7 +1271,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.",