summaryrefslogtreecommitdiff
path: root/src/emap/clif.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap/clif.c')
-rw-r--r--src/emap/clif.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/emap/clif.c b/src/emap/clif.c
index 54df930..a5e3ecd 100644
--- a/src/emap/clif.c
+++ b/src/emap/clif.c
@@ -1816,7 +1816,12 @@ void eclif_party_info_post(struct party_data *p,
void eclif_parse_NpcStringInput(int fd,
struct map_session_data* sd)
{
- int message_len = RFIFOW(fd, 2) - 8;
+// [4144] can't confirm exact client version. At least >= correct for 20150513
+#if PACKETVER >= 20151029
+ int message_len = RFIFOW(fd, 2) - 7;
+#else
+ int message_len = RFIFOW(fd, 2) - 8;
+#endif
int npcid = RFIFOL(fd, 4);
const char *message = RFIFOP(fd, 8);