summaryrefslogtreecommitdiff
path: root/src/gui/windows/charcreatedialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-30 19:52:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-30 19:52:16 +0300
commit88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce (patch)
treeb35a28cd317e2895c063749180b98edfe223c032 /src/gui/windows/charcreatedialog.cpp
parentc24fefa91a1416a4dad7fd97d67cefa51f9eb97c (diff)
downloadmv-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.gz
mv-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.bz2
mv-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.xz
mv-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.zip
Fix code style in gui.
Diffstat (limited to 'src/gui/windows/charcreatedialog.cpp')
-rw-r--r--src/gui/windows/charcreatedialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp
index 0fe412e5c..182ce5f03 100644
--- a/src/gui/windows/charcreatedialog.cpp
+++ b/src/gui/windows/charcreatedialog.cpp
@@ -340,7 +340,8 @@ void CharCreateDialog::action(const ActionEvent &event)
Net::getCharServerHandler()->newCharacter(getName(), characterSlot,
mFemale->isSelected(), mHairStyle, mHairColor,
- static_cast<unsigned char>(mRace), mLook, atts);
+ static_cast<unsigned char>(mRace),
+ static_cast<unsigned char>(mLook), atts);
}
else
{
@@ -620,7 +621,8 @@ void CharCreateDialog::updateLook()
{
mLook = 0;
}
- mPlayer->setSubtype(static_cast<uint16_t>(mRace), mLook);
+ mPlayer->setSubtype(static_cast<uint16_t>(mRace),
+ static_cast<uint8_t>(mLook));
if (mRaceNameLabel)
{
mRaceNameLabel->setCaption(item.getName());