diff options
author | Shauren <shauren.trinity@gmail.com> | 2012-11-25 11:11:26 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2012-11-25 11:11:26 +0100 |
commit | 108db4f6eb832a81308759e73c5d645280b42b0a (patch) | |
tree | e136721ecbcbc690e939e252d1c94ca0c85b1438 | |
parent | 0cd59ec2102ef69f5ab99e82b3e0d0670f59dd4f (diff) |
Core/Items: Cloned items should not retain refundable/tradeable flags
-rwxr-xr-x | src/server/game/Entities/Item/Item.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Item/Item.cpp b/src/server/game/Entities/Item/Item.cpp index a1ff6cf2ce8..bdaf11ad9b8 100755 --- a/src/server/game/Entities/Item/Item.cpp +++ b/src/server/game/Entities/Item/Item.cpp @@ -1045,7 +1045,7 @@ Item* Item::CloneItem(uint32 count, Player const* player) const newItem->SetUInt32Value(ITEM_FIELD_CREATOR, GetUInt32Value(ITEM_FIELD_CREATOR)); newItem->SetUInt32Value(ITEM_FIELD_GIFTCREATOR, GetUInt32Value(ITEM_FIELD_GIFTCREATOR)); - newItem->SetUInt32Value(ITEM_FIELD_FLAGS, GetUInt32Value(ITEM_FIELD_FLAGS)); + newItem->SetUInt32Value(ITEM_FIELD_FLAGS, GetUInt32Value(ITEM_FIELD_FLAGS) & ~(ITEM_FLAG_REFUNDABLE | ITEM_FLAG_BOP_TRADEABLE)); newItem->SetUInt32Value(ITEM_FIELD_DURATION, GetUInt32Value(ITEM_FIELD_DURATION)); // player CAN be NULL in which case we must not update random properties because that accesses player's item update queue if (player) |