summaryrefslogtreecommitdiff
path: root/src/net/eathena/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-18 14:06:44 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-18 14:06:44 +0300
commit64309d7a7dc6380d62fa11363073d4243cbfa665 (patch)
treee9ac37f294e2a612391be6afa199b689e90defe8 /src/net/eathena/charserverhandler.cpp
parentbc22bc4da27d80627fa966660670219b3652e9ec (diff)
downloadplus-64309d7a7dc6380d62fa11363073d4243cbfa665.tar.gz
plus-64309d7a7dc6380d62fa11363073d4243cbfa665.tar.bz2
plus-64309d7a7dc6380d62fa11363073d4243cbfa665.tar.xz
plus-64309d7a7dc6380d62fa11363073d4243cbfa665.zip
Convert player look variable format from 8 bit to 16 bit.
Diffstat (limited to 'src/net/eathena/charserverhandler.cpp')
-rw-r--r--src/net/eathena/charserverhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp
index 21306b659..8decf9eef 100644
--- a/src/net/eathena/charserverhandler.cpp
+++ b/src/net/eathena/charserverhandler.cpp
@@ -219,7 +219,7 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg,
ItemDB::get(-hairStyle).getDyeColorsString(
msg.readInt16("hair color")));
- const uint8_t look = msg.readInt16("clothes color");
+ const uint16_t look = msg.readInt16("clothes color");
tempPlayer->setSubtype(race, look);
tempPlayer->setName(msg.readString(24, "name"));
@@ -273,7 +273,7 @@ void CharServerHandler::newCharacter(const std::string &name, const int slot,
const Gender::Type gender,
const int hairstyle, const int hairColor,
const unsigned char race,
- const unsigned char look,
+ const uint16_t look,
const std::vector<int> &stats A_UNUSED)
const
{