From 15528534932fc1a7ce28323f75963a1060dd1a7f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 12 Aug 2015 21:21:29 +0300 Subject: Fix loading weapon sprite in char selection dialog. --- src/net/eathena/charserverhandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/net') diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index a898d3162..7ff8e40d3 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -232,8 +232,9 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg, msg.readInt16("speed"); const uint16_t race = msg.readInt16("class"); // tempPlayer->setSubtype(race, 0); - const int hairStyle = msg.readInt16("hair style"); - const int weapon = msg.readInt32("weapon"); + const int hairStyle = msg.readInt32("hair style"); + const int option = (msg.readInt16("weapon") | 1) ^ 1; + const int weapon = 0; tempPlayer->setSprite(SPRITE_BODY, weapon, "", 1, true); -- cgit v1.2.3-70-g09d2