Core/Vendors: Fixed the "Item does not go into that slot" problem.
The client sends the player guid when trying to store the item in the default backpack (255)
This commit is contained in:
1 parent
67118c6999
commit
bbb5712e97
1 file changed
+2
@@ -691,6 +691,8 @@ void WorldSession::HandleBuyItemOpcode(WorldPacket& recvData)
|
||||
uint8 bag = NULL_BAG;
|
||||
if (bagItem && bagItem->IsBag())
|
||||
bag = bagItem->GetSlot();
|
||||
else if (bagGuid == GetPlayer()->GetGUID()) // The client sends the player guid when trying to store an item in the default backpack
|
||||
bag = INVENTORY_SLOT_BAG_0;
|
||||
|
||||
GetPlayer()->BuyItemFromVendorSlot(vendorguid, slot, item, count, bag, bagSlot);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user