diff options
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 44c666c5ed0..a48cd7f2f8e 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -12558,7 +12558,7 @@ void Player::RemoveEnchantmentDurations(Item *item) if (itr->item == item) { // save duration in item - item->SetEnchantmentDuration(EnchantmentSlot(itr->slot), itr->leftduration); + item->SetEnchantmentDuration(EnchantmentSlot(itr->slot), itr->leftduration, this); itr = m_enchantDuration.erase(itr); } else @@ -12624,7 +12624,7 @@ void Player::AddEnchantmentDuration(Item *item,EnchantmentSlot slot,uint32 durat { if (itr->item == item && itr->slot == slot) { - itr->item->SetEnchantmentDuration(itr->slot, itr->leftduration); + itr->item->SetEnchantmentDuration(itr->slot, itr->leftduration, this); m_enchantDuration.erase(itr); break; } @@ -17456,7 +17456,7 @@ void Player::_SaveInventory() // update enchantment durations for (EnchantDurationList::iterator itr = m_enchantDuration.begin(); itr != m_enchantDuration.end(); ++itr) - itr->item->SetEnchantmentDuration(itr->slot,itr->leftduration); + itr->item->SetEnchantmentDuration(itr->slot,itr->leftduration, this); // if no changes if (m_itemUpdateQueue.empty()) |