Core/Loot: Fixes not being able to loot some quest items.
This commit is contained in:
@@ -448,11 +448,11 @@ namespace Game.Loots
|
|||||||
bool is_looted = true;
|
bool is_looted = true;
|
||||||
if (lootSlot >= items.Count)
|
if (lootSlot >= items.Count)
|
||||||
{
|
{
|
||||||
uint questSlot = (uint)(lootSlot - items.Count);
|
int questSlot = (int)(lootSlot - items.Count);
|
||||||
var questItems = PlayerQuestItems.LookupByKey(player.GetGUID());
|
var questItems = PlayerQuestItems.LookupByKey(player.GetGUID());
|
||||||
if (!questItems.Empty())
|
if (!questItems.Empty())
|
||||||
{
|
{
|
||||||
NotNormalLootItem qitem2 = questItems.Find(p => p.index == questSlot);
|
NotNormalLootItem qitem2 = questItems[questSlot];
|
||||||
if (qitem2 != null)
|
if (qitem2 != null)
|
||||||
{
|
{
|
||||||
qitem = qitem2;
|
qitem = qitem2;
|
||||||
|
|||||||
Reference in New Issue
Block a user