From a7cbe2f60eab05f2516b44df8eda501c1c52cfac Mon Sep 17 00:00:00 2001 From: Uleat Date: Tue, 28 Feb 2017 09:44:24 -0500 Subject: [PATCH] Fix for npc corpse looting not updating appearance of looted items --- zone/loottables.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zone/loottables.cpp b/zone/loottables.cpp index 3297dec60..4fd9c893c 100644 --- a/zone/loottables.cpp +++ b/zone/loottables.cpp @@ -255,6 +255,7 @@ void NPC::AddLootDrop(const EQEmu::ItemData *item2, ItemList* itemlist, int16 ch item->attuned = 0; item->min_level = minlevel; item->max_level = maxlevel; + item->equip_slot = EQEmu::inventory::slotInvalid; if (equipit) { uint8 eslot = 0xFF; @@ -399,8 +400,8 @@ void NPC::AddLootDrop(const EQEmu::ItemData *item2, ItemList* itemlist, int16 ch } if (found) { CalcBonuses(); // This is less than ideal for bulk adding of items + item->equip_slot = foundslot; } - item->equip_slot = item2->Slots; } if(itemlist != nullptr)