Skip to content

Commit

Permalink
Fix error in lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCWills committed May 12, 2024
1 parent 0b5324b commit b1eab9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3352,7 +3352,8 @@ void TryRandomUniqueItem(Item &item, _item_indexes idx, int8_t mLevel, int uper,
}

// Amount to decrease the final uid by in CheckUnique() to get the desired unique.
const int uidOffset = std::count_if(uids.begin() + uid + 1, uids.end(), [&uniqueItem](UniqueItem potentialMatch) {
const int uidOffset = std::count_if(uids.begin() + uid + 1, uids.end(), [&uniqueItem](int matchId) {
const UniqueItem &potentialMatch = UniqueItems[matchId];
return uniqueItem.UIItemId == potentialMatch.UIItemId && uniqueItem.UIMinLvl == potentialMatch.UIMinLvl;
});

Expand Down

0 comments on commit b1eab9e

Please sign in to comment.