Replace group filter operator with function

This commit is contained in:
gsemaj
2022-04-24 16:50:03 -04:00
committed by gsemaj
parent 2a622f901c
commit 6d760f5bce
4 changed files with 11 additions and 11 deletions

View File

@@ -851,7 +851,7 @@ void MobAI::onDeath(CombatNPC* npc, EntityRef src) {
Missions::mobKilled(src.sock, self->type, qitemRolls);
}
else {
auto players = (*plr->group)[EntityKind::PLAYER];
auto players = plr->group->filter(EntityKind::PLAYER);
for (EntityRef pRef : players) playerRefs.push_back(PlayerManager::getPlayer(pRef.sock));
Combat::genQItemRolls(playerRefs, qitemRolls);
for (int i = 0; i < players.size(); i++) {