diff options
author | Nay <dnpd.dd@gmail.com> | 2012-08-04 20:03:15 +0100 |
---|---|---|
committer | Nay <dnpd.dd@gmail.com> | 2012-08-04 20:03:15 +0100 |
commit | e8f08be901bb77a0c01255a88888c73bc224e4c6 (patch) | |
tree | 4ac00be9063545b224b09e2fd6e3ca06636efc67 | |
parent | 880e708658b1c8b180dbe7841214a7a79870698a (diff) |
Core/Items: Fix compile
-rwxr-xr-x | src/server/game/Handlers/ItemHandler.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/server/game/Handlers/ItemHandler.cpp b/src/server/game/Handlers/ItemHandler.cpp index c44cef555db..81b8a98414f 100755 --- a/src/server/game/Handlers/ItemHandler.cpp +++ b/src/server/game/Handlers/ItemHandler.cpp @@ -686,9 +686,9 @@ void WorldSession::HandleBuyItemOpcode(WorldPacket& recv_data) sLog->outDebug(LOG_FILTER_NETWORKIO, "WORLD: Received CMSG_BUY_ITEM"); uint64 vendorguid, bagGuid; uint32 item, slot, count; - uint8 itemType; // 1 = item, 2 = currency - int8 bagSlot; - + uint8 itemType; // 1 = item, 2 = currency (not implemented) + uint8 bagSlot; + recv_data >> vendorguid >> itemType >> item >> slot >> count >> bagGuid >> bagSlot; // client expects count starting at 1, and we send vendorslot+1 to client already @@ -699,6 +699,7 @@ void WorldSession::HandleBuyItemOpcode(WorldPacket& recv_data) Item* bagItem = _player->GetItemByGuid(bagGuid); + uint8 bag = NULL_BAG; if (bagItem && bagItem->IsBag()) bag = bagItem->GetSlot(); |