fix(Core/Item): prevent possible items dupe (#6943)

This commit is contained in:
robinsch
2021-07-21 12:05:12 +02:00
committed by GitHub
parent 4332a7a43a
commit a3e3fd029f
7 changed files with 29 additions and 18 deletions

View File

@@ -12616,7 +12616,7 @@ void Player::StoreLootItem(uint8 lootSlot, Loot* loot)
// LootItem is being removed (looted) from the container, delete it from the DB.
if (loot->containerGUID)
sLootItemStorage->RemoveStoredLootItem(loot->containerGUID, item->itemid, item->count, loot);
sLootItemStorage->RemoveStoredLootItem(loot->containerGUID, item->itemid, item->count, loot, item->itemIndex);
#ifdef ELUNA
sEluna->OnLootItem(this, newitem, item->count, this->GetLootGUID());