DestroyItem in InitEquipment

This commit is contained in:
Yunfan Li
2023-08-10 01:39:30 +08:00
parent 946ac597b9
commit 7063c5b563

View File

@@ -1246,8 +1246,9 @@ void PlayerbotFactory::InitEquipment(bool incremental)
}
if (oldItem)
{
bot->RemoveItem(INVENTORY_SLOT_BAG_0, slot, true);
oldItem->DestroyForPlayer(bot, false);
// bot->RemoveItem(INVENTORY_SLOT_BAG_0, slot, true);
bot->DestroyItem(INVENTORY_SLOT_BAG_0, slot, true);
// oldItem->DestroyForPlayer(bot, false);
}
uint16 dest;
if (!CanEquipUnseenItem(slot, dest, bestItemForSlot)) {