Fix for npc corpse looting not updating appearance of looted items

This commit is contained in:
Uleat 2017-02-28 09:44:24 -05:00
parent 52d79f89a9
commit a7cbe2f60e

View File

@ -255,6 +255,7 @@ void NPC::AddLootDrop(const EQEmu::ItemData *item2, ItemList* itemlist, int16 ch
item->attuned = 0; item->attuned = 0;
item->min_level = minlevel; item->min_level = minlevel;
item->max_level = maxlevel; item->max_level = maxlevel;
item->equip_slot = EQEmu::inventory::slotInvalid;
if (equipit) { if (equipit) {
uint8 eslot = 0xFF; uint8 eslot = 0xFF;
@ -399,8 +400,8 @@ void NPC::AddLootDrop(const EQEmu::ItemData *item2, ItemList* itemlist, int16 ch
} }
if (found) { if (found) {
CalcBonuses(); // This is less than ideal for bulk adding of items CalcBonuses(); // This is less than ideal for bulk adding of items
item->equip_slot = foundslot;
} }
item->equip_slot = item2->Slots;
} }
if(itemlist != nullptr) if(itemlist != nullptr)