From 74136eec9795d339421a569b774dd8486662e93e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 7 Oct 2014 01:07:41 +0300 Subject: eathena: fix packet SMSG_GUILD_MEMBER_LOGIN 0x01f2. --- src/net/eathena/guildhandler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/net/eathena/guildhandler.cpp') diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp index 3d6fb2d19..51ff00cce 100644 --- a/src/net/eathena/guildhandler.cpp +++ b/src/net/eathena/guildhandler.cpp @@ -394,12 +394,18 @@ void GuildHandler::processGuildMemberLogin(Net::MessageIn &msg) const const int accountId = msg.readInt32("account id"); const int charId = msg.readInt32("char id"); const int online = msg.readInt32("flag"); + const Gender::Type gender = Being::intToGender(static_cast( + msg.readInt16("sex"))); + msg.readInt16("hair"); + msg.readInt16("hair color"); if (Ea::taGuild) { GuildMember *const m = Ea::taGuild->getMember(accountId, charId); if (m) { m->setOnline(online); + if (online) + m->setGender(gender); if (Ea::guildTab) Ea::guildTab->showOnline(m->getName(), online); if (socialWindow) -- cgit v1.2.3-70-g09d2