diff options
Diffstat (limited to 'src/net/charserverhandler.cpp')
-rw-r--r-- | src/net/charserverhandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/charserverhandler.cpp b/src/net/charserverhandler.cpp index b25b0453..063be212 100644 --- a/src/net/charserverhandler.cpp +++ b/src/net/charserverhandler.cpp @@ -202,7 +202,7 @@ LocalPlayer* CharServerHandler::readPlayerData(MessageIn &msg, int &slot) tempPlayer->mMaxMp = msg.readInt16(); msg.readInt16(); // speed msg.readInt16(); // class - tempPlayer->setHairStyle(msg.readInt16()); + int hairStyle = msg.readInt16(); Uint16 weapon = msg.readInt16(); tempPlayer->setVisibleEquipment(Being::WEAPON_SPRITE, weapon); tempPlayer->mLevel = msg.readInt16(); @@ -211,7 +211,8 @@ LocalPlayer* CharServerHandler::readPlayerData(MessageIn &msg, int &slot) msg.readInt16(); // shield tempPlayer->setVisibleEquipment(Being::HAT_SPRITE, msg.readInt16()); // head option top tempPlayer->setVisibleEquipment(Being::TOPCLOTHES_SPRITE, msg.readInt16()); // head option mid - tempPlayer->setHairColor(msg.readInt16()); + int hairColor = msg.readInt16(); + tempPlayer->setHairStyle(hairStyle, hairColor); msg.readInt16(); // unknown tempPlayer->setName(msg.readString(24)); for (int i = 0; i < 6; i++) { |