mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Groups: Use iterators instead of raw LinkedListElement to interact with group members
This commit is contained in:
@@ -209,12 +209,9 @@ void WorldSession::SendLfgPartyLockInfo()
|
||||
WorldPackets::LFG::LfgPartyInfo lfgPartyInfo;
|
||||
|
||||
// Get the locked dungeons of the other party members
|
||||
for (GroupReference* itr = group->GetFirstMember(); itr != nullptr; itr = itr->next())
|
||||
for (GroupReference const& itr : group->GetMembers())
|
||||
{
|
||||
Player* plrg = itr->GetSource();
|
||||
if (!plrg)
|
||||
continue;
|
||||
|
||||
Player* plrg = itr.GetSource();
|
||||
ObjectGuid pguid = plrg->GetGUID();
|
||||
if (pguid == guid)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user