[11524] Avoid adding auction item to player inventory update queue.

Also not set ITEM_FIELD_CONTAINED before real adding item to inventory.
No known porblem with last but code cleanup.
This commit is contained in:
VladimirMangos 2011-05-23 05:30:55 +04:00
parent 4ba5aa83e3
commit d5675ba3bd
3 changed files with 3 additions and 2 deletions

View file

@ -253,7 +253,7 @@ bool Item::Create( uint32 guidlow, uint32 itemid, Player const* owner)
SetObjectScale(DEFAULT_OBJECT_SCALE);
SetGuidValue(ITEM_FIELD_OWNER, owner ? owner->GetObjectGuid() : ObjectGuid());
SetGuidValue(ITEM_FIELD_CONTAINED, owner ? owner->GetObjectGuid() : ObjectGuid());
SetGuidValue(ITEM_FIELD_CONTAINED, ObjectGuid());
ItemPrototype const *itemProto = ObjectMgr::GetItemPrototype(itemid);
if(!itemProto)