diff options
author | WishToDie <w1sht0l1v3@gmail.com> | 2015-04-09 18:29:20 +0300 |
---|---|---|
committer | WishToDie <w1sht0l1v3@gmail.com> | 2015-04-09 18:29:20 +0300 |
commit | 08a62f19b808a347aae56b4f5a689233c6a03db0 (patch) | |
tree | 79a66409484886ec42a6d9d19bb3061ec0db1494 /src | |
parent | 4d051ec7957a070ac4af70524ad5b4b26bace2e6 (diff) |
Update LFGMgr.cpp
Core/LFGMgr: Fix crash in e743f4a479ce7ddd3f13d51ca1c19a591c803fc0
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/DungeonFinding/LFGMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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.", |