From 7ff1b993bfc1e65a2e2d44bbcfc6444421aa69a2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 12 Nov 2014 11:48:22 +0300 Subject: eathena: fix reading characters list for account. --- src/net/eathena/charserverhandler.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/net/eathena/charserverhandler.cpp') diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index a4908413d..ab815c37f 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -193,11 +193,8 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg, tempPlayer->setManner(msg.readInt32("manner")); msg.readInt16("left points"); - data.mAttributes[Attributes::HP] = msg.readInt16("hp"); - data.mAttributes[Attributes::MAX_HP] = msg.readInt16("max hp"); - - msg.readInt32("unused"); - + data.mAttributes[Attributes::HP] = msg.readInt32("hp"); + data.mAttributes[Attributes::MAX_HP] = msg.readInt32("max hp"); data.mAttributes[Attributes::MP] = msg.readInt16("mp/sp"); data.mAttributes[Attributes::MAX_MP] = msg.readInt16("max mp/sp"); @@ -250,6 +247,8 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg, msg.readInt32("robe"); msg.readInt32("slot change"); tempPlayer->setRename(msg.readInt32("rename (inverse)")); + // +++ here need use gender + msg.readUInt8("gender"); } void CharServerHandler::chooseCharacter(Net::Character *const character) -- cgit v1.2.3-70-g09d2