summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-05-06 16:36:33 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-05-06 16:41:28 +0200
commit4ddfb48486fac2a10082e5ed70e7fbf3af17c38f (patch)
tree994750815900b46813694368753c85ab9685e9af
parent6decbb6227bdb72327273e9e607f58f6bff5fd5c (diff)
downloadmana-4ddfb48486fac2a10082e5ed70e7fbf3af17c38f.tar.gz
mana-4ddfb48486fac2a10082e5ed70e7fbf3af17c38f.tar.bz2
mana-4ddfb48486fac2a10082e5ed70e7fbf3af17c38f.tar.xz
mana-4ddfb48486fac2a10082e5ed70e7fbf3af17c38f.zip
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
-rw-r--r--src/net/manaserv/npchandler.cpp2
1 files changed, 1 insertions, 1 deletions
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;