From 905bfd0ad38d7101f99f38b00044d9f192cc664d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 4 Mar 2015 14:44:05 +0300 Subject: eathena: fix hair color afrer reordering sprites. --- src/net/eathena/charserverhandler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/net/eathena/charserverhandler.cpp') diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index 8decf9eef..ad137ab84 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -215,9 +215,11 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg, const int hat = msg.readInt16("head top"); const int topClothes = msg.readInt16("head mid"); + const uint16_t color = msg.readInt16("hair color"); + tempPlayer->setHairColor(static_cast(color)); tempPlayer->setSprite(SPRITE_HAIR_COLOR, hairStyle * -1, ItemDB::get(-hairStyle).getDyeColorsString( - msg.readInt16("hair color"))); + color)); const uint16_t look = msg.readInt16("clothes color"); tempPlayer->setSubtype(race, look); -- cgit v1.2.3-70-g09d2