summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-07 16:40:37 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-07 16:40:37 +0300
commit3dbb94e740268181f9642d065e57520c1199c355 (patch)
treef856bad71bf6513e0882e0190bd8e4df10ba5683 /src
parent726a46299e2efb1e010fa8524dba19871a0c6294 (diff)
downloadmv-3dbb94e740268181f9642d065e57520c1199c355.tar.gz
mv-3dbb94e740268181f9642d065e57520c1199c355.tar.bz2
mv-3dbb94e740268181f9642d065e57520c1199c355.tar.xz
mv-3dbb94e740268181f9642d065e57520c1199c355.zip
eathena: fix packet SMSG_GUILD_EXPULSION_LIST 0x0163.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/guildhandler.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp
index 63d88c624..5e7ed61a7 100644
--- a/src/net/eathena/guildhandler.cpp
+++ b/src/net/eathena/guildhandler.cpp
@@ -429,17 +429,16 @@ void GuildHandler::processGuildExpulsion(Net::MessageIn &msg) const
void GuildHandler::processGuildExpulsionList(Net::MessageIn &msg) const
{
- const int length = msg.readInt16();
+ const int length = msg.readInt16("len");
if (length < 4)
return;
- const int count = (length - 4) / 88;
+ const int count = (length - 4) / 64;
for (int i = 0; i < count; i++)
{
- msg.readString(24); // Name (of expulsed?)
- msg.readString(24); // 'Acc' (name of expulser?)
- msg.readString(24); // Message
+ msg.readString(24, "name");
+ msg.readString(40, "message");
}
}