Core/Vendors: Fixed the "Item not found" error message when trying to buy an item from a vendor.
This commit is contained in:
1 parent
bbb5712e97
commit
4d526fd73d
1 file changed
+4
-2
@@ -781,7 +781,8 @@ void WorldSession::SendListInventory(uint64 vendorGuid)
|
||||
if (int32 priceMod = _player->GetTotalAuraModifier(SPELL_AURA_MOD_VENDOR_ITEMS_PRICES))
|
||||
price -= CalculatePct(price, priceMod);
|
||||
|
||||
itemsData << uint32(count++ + 1); // client expects counting to start at 1
|
||||
++count;
|
||||
itemsData << uint32(slot + 1); // client expects counting to start at 1
|
||||
itemsData << uint32(itemTemplate->MaxDurability);
|
||||
|
||||
if (vendorItem->ExtendedCost != 0)
|
||||
@@ -812,7 +813,8 @@ void WorldSession::SendListInventory(uint64 vendorGuid)
|
||||
|
||||
uint32 precision = (currencyTemplate->Flags & CURRENCY_FLAG_HIGH_PRECISION) ? 100 : 1;
|
||||
|
||||
itemsData << uint32(count++ + 1); // client expects counting to start at 1
|
||||
++count;
|
||||
itemsData << uint32(slot + 1); // client expects counting to start at 1
|
||||
itemsData << uint32(0); // max durability
|
||||
|
||||
if (vendorItem->ExtendedCost != 0)
|
||||
|
||||
Reference in new issue
Block a user