Core/Items: Fixed durability problems for wrapped item (#19003)

This commit is contained in:
xinef1 authored and Aokromes committed 2017-03-23 02:11:26 +01:00
1 parent fe42260189
commit c7a2fbed3f
2 files changed
+4 -1

No files matched your search

@@ -291,6 +291,7 @@ void WorldSession::HandleOpenWrappedItemCallback(uint16 pos, ObjectGuid itemGuid
item->SetGuidValue(ITEM_FIELD_GIFTCREATOR, ObjectGuid::Empty);
item->SetEntry(entry);
item->SetUInt32Value(ITEM_FIELD_FLAGS, flags);
item->SetUInt32Value(ITEM_FIELD_MAXDURABILITY, item->GetTemplate()->MaxDurability);
item->SetState(ITEM_CHANGED, GetPlayer());
GetPlayer()->SaveInventoryAndGoldToDB(trans);