diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-08 23:14:47 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-08 23:14:47 +0200 |
commit | ee1a1c0e14058fb1a31904a6e2cf0c0ce90bc26b (patch) | |
tree | 41f7d969a0745b1756be90a5b3ed8045413c6154 /src/net/tmwa | |
parent | 6ac9a6b3e3e5fe8958646a18c6e81a25aa5bb326 (diff) | |
download | manaplus-ee1a1c0e14058fb1a31904a6e2cf0c0ce90bc26b.tar.gz manaplus-ee1a1c0e14058fb1a31904a6e2cf0c0ce90bc26b.tar.bz2 manaplus-ee1a1c0e14058fb1a31904a6e2cf0c0ce90bc26b.tar.xz manaplus-ee1a1c0e14058fb1a31904a6e2cf0c0ce90bc26b.zip |
Fix possible problem with buying colored item.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/npchandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/tmwa/npchandler.cpp b/src/net/tmwa/npchandler.cpp index 8ddfeb090..f085da68c 100644 --- a/src/net/tmwa/npchandler.cpp +++ b/src/net/tmwa/npchandler.cpp @@ -227,10 +227,11 @@ void NpcHandler::buyItem(int beingId _UNUSED_, int itemId, MessageOut outMsg(CMSG_NPC_BUY_REQUEST); if (serverVersion > 0) { - outMsg.writeInt16(9); // One item (length of packet) + outMsg.writeInt16(10); // One item (length of packet) outMsg.writeInt16(amount); outMsg.writeInt16(itemId); outMsg.writeInt8(color); + outMsg.writeInt8(0); } else { |