From d4b6bb13456b075702f346ed87a79a7e9652bfec Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sat, 30 Jan 2021 20:21:37 -0500 Subject: [PATCH] Core/Loot: Fixes not being able to loot some quest items. --- Source/Game/Loot/Loot.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Game/Loot/Loot.cs b/Source/Game/Loot/Loot.cs index 570389812..fdfdd96ec 100644 --- a/Source/Game/Loot/Loot.cs +++ b/Source/Game/Loot/Loot.cs @@ -448,11 +448,11 @@ namespace Game.Loots bool is_looted = true; if (lootSlot >= items.Count) { - uint questSlot = (uint)(lootSlot - items.Count); + int questSlot = (int)(lootSlot - items.Count); var questItems = PlayerQuestItems.LookupByKey(player.GetGUID()); if (!questItems.Empty()) { - NotNormalLootItem qitem2 = questItems.Find(p => p.index == questSlot); + NotNormalLootItem qitem2 = questItems[questSlot]; if (qitem2 != null) { qitem = qitem2;