summaryrefslogtreecommitdiff
path: root/src/net/eathena/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-04 14:44:05 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-04 14:44:05 +0300
commit905bfd0ad38d7101f99f38b00044d9f192cc664d (patch)
tree51a6c2a64c03381ec07d27f30175a497a47836c0 /src/net/eathena/charserverhandler.cpp
parent84a3ce662567b6b1e79475442bddb1f29d4bc83c (diff)
downloadplus-905bfd0ad38d7101f99f38b00044d9f192cc664d.tar.gz
plus-905bfd0ad38d7101f99f38b00044d9f192cc664d.tar.bz2
plus-905bfd0ad38d7101f99f38b00044d9f192cc664d.tar.xz
plus-905bfd0ad38d7101f99f38b00044d9f192cc664d.zip
eathena: fix hair color afrer reordering sprites.
Diffstat (limited to 'src/net/eathena/charserverhandler.cpp')
-rw-r--r--src/net/eathena/charserverhandler.cpp4
1 files changed, 3 insertions, 1 deletions
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<unsigned char>(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);