Core/LFG: Teleport players to other players instead of dungeon entrance when continuing a LFG dungeon (ported commit: d2841d6b66)

This commit is contained in:
Ovahlord
2019-03-04 09:05:47 +01:00
parent bd58cb3ab1
commit e77321a45c

View File

@@ -1402,7 +1402,7 @@ void LFGMgr::TeleportPlayer(Player* player, bool out, bool fromOpcode /*= false*
if (!fromOpcode && saveEntryPoint)
{
// Select a player inside to be teleported to
for (GroupReference* itr = group->GetFirstMember(); itr != nullptr && !mapid; itr = itr->next())
for (GroupReference* itr = group->GetFirstMember(); itr != nullptr; itr = itr->next())
{
Player* plrg = itr->GetSource();
if (plrg && plrg != player && plrg->GetMapId() == uint32(dungeon->map))