diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-05-06 16:36:33 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-05-06 16:41:28 +0200 |
commit | 4ddfb48486fac2a10082e5ed70e7fbf3af17c38f (patch) | |
tree | 994750815900b46813694368753c85ab9685e9af | |
parent | 6decbb6227bdb72327273e9e607f58f6bff5fd5c (diff) | |
download | mana-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.cpp | 2 |
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; |