Core/Loot: Fixes not being able to loot some quest items.

This commit is contained in:
hondacrx
2021-01-30 20:21:37 -05:00
parent 9bca3b5432
commit d4b6bb1345
+2 -2
View File
@@ -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;