summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-10 23:25:27 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-10 23:25:27 +0300
commitfe921bd36d4b2ac70ac6c815c166ec8fd9a210aa (patch)
treef8f341f2dd03bd45326362a64eb603a2b5261ec7 /src
parenta479abc8d3a44712a687822ae59979985573b09d (diff)
downloadplus-fe921bd36d4b2ac70ac6c815c166ec8fd9a210aa.tar.gz
plus-fe921bd36d4b2ac70ac6c815c166ec8fd9a210aa.tar.bz2
plus-fe921bd36d4b2ac70ac6c815c166ec8fd9a210aa.tar.xz
plus-fe921bd36d4b2ac70ac6c815c166ec8fd9a210aa.zip
eathena: fix packet CMSG_GUILD_MESSAGE.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/guildhandler.cpp3
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