fix(Core/Loot): properly save and load from DB loot from items (#6151)

- Closes #5472
- Closes https://github.com/chromiecraft/chromiecraft/issues/456
This commit is contained in:
UltraNix
2021-06-08 19:26:34 +02:00
committed by GitHub
parent 933335d6be
commit 6dacfc0717
7 changed files with 180 additions and 42 deletions

View File

@@ -9379,7 +9379,7 @@ void Player::SendLoot(ObjectGuid guid, LootType loot_type)
// Xinef: Store container id
loot->containerGUID = item->GetGUID();
if (!item->m_lootGenerated && !sLootItemStorage->LoadStoredLoot(item))
if (!item->m_lootGenerated && !sLootItemStorage->LoadStoredLoot(item, this))
{
item->m_lootGenerated = true;
loot->clear();