We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5725076 commit 397b623Copy full SHA for 397b623
src/modules/Bots/playerbot/strategy/actions/LootRollAction.cpp
@@ -47,11 +47,11 @@ bool LootRollAction::Execute(Event event)
47
}
48
49
#else
50
- for (vector<Roll*>::iterator i = group->GetRolls().begin(); i != group->GetRolls().end(); ++i)
+ for (auto& roll : group->GetRolls())
51
{
52
- if ((*i)->isValid() && (*i)->lootedTargetGUID == guid && (*i)->itemSlot == slot)
+ if (roll->isValid() && roll->lootedTargetGUID == guid && roll->itemSlot == slot)
53
54
- uint32 itemId = (*i)->itemid;
+ uint32 itemId = roll->itemid;
55
ItemPrototype const *proto = sItemStorage.LookupEntry<ItemPrototype>(itemId);
56
if (!proto)
57
0 commit comments