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:
Subv
2012-10-16 13:18:32 -05:00
parent 67118c6999
commit bbb5712e97

View File

@@ -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);
}