summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-08 23:14:47 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-08 23:14:47 +0200
commitee1a1c0e14058fb1a31904a6e2cf0c0ce90bc26b (patch)
tree41f7d969a0745b1756be90a5b3ed8045413c6154 /src/net
parent6ac9a6b3e3e5fe8958646a18c6e81a25aa5bb326 (diff)
downloadManaVerse-ee1a1c0e14058fb1a31904a6e2cf0c0ce90bc26b.tar.gz
ManaVerse-ee1a1c0e14058fb1a31904a6e2cf0c0ce90bc26b.tar.bz2
ManaVerse-ee1a1c0e14058fb1a31904a6e2cf0c0ce90bc26b.tar.xz
ManaVerse-ee1a1c0e14058fb1a31904a6e2cf0c0ce90bc26b.zip
Fix possible problem with buying colored item.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/tmwa/npchandler.cpp3
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
{