From b095bf2d87be2adb87c212cd37ec0f3ddcf51b27 Mon Sep 17 00:00:00 2001 From: staphen Date: Sun, 12 May 2024 11:26:36 -0400 Subject: [PATCH] Fix error in lambda --- Source/items.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/items.cpp b/Source/items.cpp index 062ac5d8e6b..2801a98b09b 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -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) { return uniqueItem.UIItemId == potentialMatch.UIItemId && uniqueItem.UIMinLvl == potentialMatch.UIMinLvl; });