diff options
author | Subv <s.v.h21@hotmail.com> | 2012-10-16 14:28:41 -0500 |
---|---|---|
committer | Subv <s.v.h21@hotmail.com> | 2012-10-16 14:28:41 -0500 |
commit | 4d526fd73dfd9cc850bf748dfb524aad9553967d (patch) | |
tree | 5fbcdbcf1442f3f66088608cf6712a409918c697 /src | |
parent | bbb5712e97fc3519506588aab96d99e1f544de84 (diff) |
Core/Vendors: Fixed the "Item not found" error message when trying to buy an item from a vendor.
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Handlers/ItemHandler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/game/Handlers/ItemHandler.cpp b/src/server/game/Handlers/ItemHandler.cpp index eca195e7586..fe0e5098180 100644 --- a/src/server/game/Handlers/ItemHandler.cpp +++ b/src/server/game/Handlers/ItemHandler.cpp @@ -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) |