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 9582b32d22)
This commit is contained in:
jackpoz
2015-02-15 14:22:01 +01:00
committed by Duarte Duarte
parent c6990e65bd
commit 111e9ebaa7

View File

@@ -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());