Removing multi-vendor Rochet2 patch

It caused compilation errors too
This commit is contained in:
yehonal
2016-06-27 00:19:46 +02:00
parent f6eefedcd5
commit bf139c3d34
8 changed files with 11 additions and 74 deletions

View File

@@ -724,7 +724,7 @@ void WorldSession::HandleListInventoryOpcode(WorldPacket & recvData)
SendListInventory(guid);
}
void WorldSession::SendListInventory(uint64 vendorGuid, uint32 vendorEntry)
void WorldSession::SendListInventory(uint64 vendorGuid)
{
;//sLog->outDebug(LOG_FILTER_NETWORKIO, "WORLD: Sent SMSG_LIST_INVENTORY");
@@ -744,9 +744,7 @@ void WorldSession::SendListInventory(uint64 vendorGuid, uint32 vendorEntry)
if (vendor->HasUnitState(UNIT_STATE_MOVING))
vendor->StopMoving();
SetCurrentVendor(vendorEntry);
VendorItemData const* items = vendorEntry ? sObjectMgr->GetNpcVendorItemList(vendorEntry) : vendor->GetVendorItems();
VendorItemData const* items = vendor->GetVendorItems();
if (!items)
{
WorldPacket data(SMSG_LIST_INVENTORY, 8 + 1 + 1);