From ee1a1c0e14058fb1a31904a6e2cf0c0ce90bc26b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 8 Mar 2011 23:14:47 +0200 Subject: Fix possible problem with buying colored item. --- src/net/tmwa/npchandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net/tmwa/npchandler.cpp') 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 { -- cgit v1.2.3-60-g2f50