mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[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:
parent
4ba5aa83e3
commit
d5675ba3bd
3 changed files with 3 additions and 2 deletions
|
|
@ -365,6 +365,7 @@ void WorldSession::HandleAuctionSellItem(WorldPacket & recv_data)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
Item *newItem = it->CloneItem(stackSize, pl);
|
Item *newItem = it->CloneItem(stackSize, pl);
|
||||||
|
newItem->RemoveFromUpdateQueueOf(pl); // item not planned to adding to inventory
|
||||||
|
|
||||||
pl->DestroyItemCount(it, stackSize, true);
|
pl->DestroyItemCount(it, stackSize, true);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -253,7 +253,7 @@ bool Item::Create( uint32 guidlow, uint32 itemid, Player const* owner)
|
||||||
SetObjectScale(DEFAULT_OBJECT_SCALE);
|
SetObjectScale(DEFAULT_OBJECT_SCALE);
|
||||||
|
|
||||||
SetGuidValue(ITEM_FIELD_OWNER, owner ? owner->GetObjectGuid() : ObjectGuid());
|
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);
|
ItemPrototype const *itemProto = ObjectMgr::GetItemPrototype(itemid);
|
||||||
if(!itemProto)
|
if(!itemProto)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11523"
|
#define REVISION_NR "11524"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue