diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-10 23:25:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-10 23:25:27 +0300 |
commit | fe921bd36d4b2ac70ac6c815c166ec8fd9a210aa (patch) | |
tree | f8f341f2dd03bd45326362a64eb603a2b5261ec7 /src/net/eathena | |
parent | a479abc8d3a44712a687822ae59979985573b09d (diff) | |
download | plus-fe921bd36d4b2ac70ac6c815c166ec8fd9a210aa.tar.gz plus-fe921bd36d4b2ac70ac6c815c166ec8fd9a210aa.tar.bz2 plus-fe921bd36d4b2ac70ac6c815c166ec8fd9a210aa.tar.xz plus-fe921bd36d4b2ac70ac6c815c166ec8fd9a210aa.zip |
eathena: fix packet CMSG_GUILD_MESSAGE.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/guildhandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp index 9ea98903a..a4e604803 100644 --- a/src/net/eathena/guildhandler.cpp +++ b/src/net/eathena/guildhandler.cpp @@ -272,8 +272,9 @@ void GuildHandler::chat(const int guildId A_UNUSED, const std::string str = std::string(localPlayer->getName()).append( " : ").append(text); MessageOut msg(CMSG_GUILD_MESSAGE); - msg.writeInt16(static_cast<uint16_t>(str.size() + 4)); + msg.writeInt16(static_cast<uint16_t>(str.size() + 4 + 1)); msg.writeString(str, static_cast<int>(str.length())); + msg.writeInt8(0); } void GuildHandler::memberList(const int guildId A_UNUSED) const |