Fix lootable items re-fill when not really empty

This commit is contained in:
Yehonal
2018-02-06 22:15:35 +00:00
parent 9e680b4aed
commit a6e91bc4ac
4 changed files with 19 additions and 12 deletions

View File

@@ -25097,8 +25097,8 @@ void Player::StoreLootItem(uint8 lootSlot, Loot* loot)
// LootItem is being removed (looted) from the container, delete it from the DB.
if (loot->containerId > 0)
sLootItemStorage->RemoveStoredLootItem(loot->containerId, item->itemid, item->count);
sLootItemStorage->RemoveStoredLootItem(loot->containerId, item->itemid, item->count, loot);
sScriptMgr->OnLootItem(this, newitem, item->count, this->GetLootGUID());
}
else