diff options
author | jackpoz <giacomopoz@gmail.com> | 2015-02-15 14:22:01 +0100 |
---|---|---|
committer | Duarte Duarte <dnpd.dd@gmail.com> | 2015-02-22 06:19:39 +0000 |
commit | 111e9ebaa71018ddd57cb787b1b21bcc8a74d394 (patch) | |
tree | a67daed7e0ac4562893999c421564242c1da7d91 /src | |
parent | c6990e65bd70d79f2b4aa2687aa7bb7e6169a3b5 (diff) |
Core/LFG: Fix LFG issue when player was teleporting
Fix a LFG issue that would kick a player out of a just-formed LFG party if player was being teleported.
Fix a log warning "Player: GUID Full: 0x0000000000000001 Type: Player Low: 1 not ingame while retrieving his LockedDungeons" if player was being teleported.
Refers to #14039 , #10191
(cherry picked from commit 9582b32d22ef9c842349a5be012bdcae4674d6c9)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/DungeonFinding/LFGMgr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp index 396644f0b4b..5796bb67c38 100644 --- a/src/server/game/DungeonFinding/LFGMgr.cpp +++ b/src/server/game/DungeonFinding/LFGMgr.cpp @@ -896,7 +896,7 @@ void LFGMgr::MakeNewGroup(LfgProposal const& proposal) for (GuidList::const_iterator it = players.begin(); it != players.end(); ++it) { ObjectGuid pguid = (*it); - Player* player = ObjectAccessor::FindPlayer(pguid); + Player* player = ObjectAccessor::FindConnectedPlayer(pguid); if (!player) continue; @@ -1569,7 +1569,7 @@ LfgLockMap const LFGMgr::GetLockedDungeons(ObjectGuid guid) { TC_LOG_TRACE("lfg.data.player.dungeons.locked.get", "Player: %s, LockedDungeons.", guid.ToString().c_str()); LfgLockMap lock; - Player* player = ObjectAccessor::FindPlayer(guid); + Player* player = ObjectAccessor::FindConnectedPlayer(guid); if (!player) { TC_LOG_WARN("lfg.data.player.dungeons.locked.get", "Player: %s not ingame while retrieving his LockedDungeons.", guid.ToString().c_str()); |