Core/Groups: Use iterators instead of raw LinkedListElement to interact with group members

This commit is contained in:
Shauren
2025-07-11 17:40:34 +02:00
parent ae197a62b7
commit cbb532e4be
31 changed files with 251 additions and 321 deletions

View File

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