mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-05 03:53:48 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user