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 b095bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3352,7 +3352,7 @@ 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(UniqueItems.begin() + uid + 1, UniqueItems.end(), [&uniqueItem](UniqueItem &potentialMatch) {

Check warning on line 3355 in Source/items.cpp

View workflow job for this annotation

GitHub Actions / build

'initializing': conversion from '__int64' to 'int', possible loss of data

Check warning on line 3355 in Source/items.cpp

View workflow job for this annotation

GitHub Actions / build

'initializing': conversion from '__int64' to 'const int', possible loss of data
return uniqueItem.UIItemId == potentialMatch.UIItemId && uniqueItem.UIMinLvl == potentialMatch.UIMinLvl;
});

Expand Down

0 comments on commit b095bf2

Please sign in to comment.