summaryrefslogtreecommitdiff
path: root/src/npc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/npc.cpp')
-rw-r--r--src/npc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/npc.cpp b/src/npc.cpp
index 7b7db125..dfbc7d16 100644
--- a/src/npc.cpp
+++ b/src/npc.cpp
@@ -144,10 +144,10 @@ void NPC::stringInput(const std::string &value)
{
MessageOut outMsg(mNetwork);
outMsg.writeInt16(CMSG_NPC_STR_RESPONSE);
- outMsg.writeInt16(value.length() + 15);
+ outMsg.writeInt16(value.length() + 8);
outMsg.writeInt32(mId);
- outMsg.writeString(value, value.length() + 6);
- outMsg.writeInt8(0);
+ outMsg.writeString(value, value.length());
+ outMsg.writeInt8(0); // Just to be safe
}
/*