From 3dbb94e740268181f9642d065e57520c1199c355 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 7 Oct 2014 16:40:37 +0300 Subject: eathena: fix packet SMSG_GUILD_EXPULSION_LIST 0x0163. --- src/net/eathena/guildhandler.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src') 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"); } } -- cgit v1.2.3-70-g09d2