From 4ddfb48486fac2a10082e5ed70e7fbf3af17c38f Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sun, 6 May 2012 16:36:33 +0200 Subject: Small protocol fix for NPC messages They are no longer sent as fixed-length string since this doesn't work when the new protocol debugging mode is used. Reviewed-by: Ben Longbons --- src/net/manaserv/npchandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/manaserv') diff --git a/src/net/manaserv/npchandler.cpp b/src/net/manaserv/npchandler.cpp index 6b79fb90..502df13d 100644 --- a/src/net/manaserv/npchandler.cpp +++ b/src/net/manaserv/npchandler.cpp @@ -108,7 +108,7 @@ void NpcHandler::handleMessage(MessageIn &msg) case GPMSG_NPC_MESSAGE: event = new Event(Event::Message); event->setInt("id", npcId); - event->setString("text", msg.readString(msg.getUnreadLength())); + event->setString("text", msg.readString()); event->trigger(Event::NpcChannel); delete event; -- cgit v1.2.3-70-g09d2