diff --git a/src/strategy/values/PartyMemberValue.cpp b/src/strategy/values/PartyMemberValue.cpp index 66c73c4d..7705b43a 100644 --- a/src/strategy/values/PartyMemberValue.cpp +++ b/src/strategy/values/PartyMemberValue.cpp @@ -63,7 +63,7 @@ Unit* PartyMemberValue::FindPartyMember(FindPlayerPredicate& predicate, bool ign if (master) masters.push_back(master); - for (ObjectGuid const guid : nearestPlayers) + for (ObjectGuid const guid : nearestGroupPlayers) { Player* player = botAI->GetPlayer(guid); if (!player)