Core/LFG: Teleport players to other players instead of dungeon entrance when continuing a LFG dungeon (ported commit: d2841d6b664ac2c8e818bea1a469fdd3f1b31f6b)
This commit is contained in:
1 parent
bd58cb3ab1
commit
e77321a45c
1 file changed
+1
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user