summaryrefslogtreecommitdiff
path: root/src/gui/charcreatedialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-11-20 05:25:45 +0300
committerAndrei Karas <akaras@inbox.ru>2011-11-20 05:25:45 +0300
commit5d4be5df7aaac5186c263caa9354891fec66d1c3 (patch)
treebfdf04e87d5527f493cc8e29d2a98c2c8d0efa94 /src/gui/charcreatedialog.cpp
parent10cf52b5ab6a9e1bb8328d9859b11d885fd5eef9 (diff)
downloadmanaplus-5d4be5df7aaac5186c263caa9354891fec66d1c3.tar.gz
manaplus-5d4be5df7aaac5186c263caa9354891fec66d1c3.tar.bz2
manaplus-5d4be5df7aaac5186c263caa9354891fec66d1c3.tar.xz
manaplus-5d4be5df7aaac5186c263caa9354891fec66d1c3.zip
Fix compilation warnings.
Diffstat (limited to 'src/gui/charcreatedialog.cpp')
-rw-r--r--src/gui/charcreatedialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/charcreatedialog.cpp b/src/gui/charcreatedialog.cpp
index c20cfab95..d621caa96 100644
--- a/src/gui/charcreatedialog.cpp
+++ b/src/gui/charcreatedialog.cpp
@@ -417,13 +417,13 @@ void CharCreateDialog::updateHair()
mHairStyle %= Being::getNumOfHairstyles();
if (mHairStyle < 0)
mHairStyle += Being::getNumOfHairstyles();
- if (mHairStyle < minHairStyle || mHairStyle > maxHairStyle)
+ if (mHairStyle < (signed)minHairStyle || mHairStyle > (signed)maxHairStyle)
mHairStyle = minHairStyle;
mHairColor %= ColorDB::getHairSize();
if (mHairColor < 0)
mHairColor += ColorDB::getHairSize();
- if (mHairColor < minHairColor || mHairColor > maxHairColor)
+ if (mHairColor < (signed)minHairColor || mHairColor > (signed)maxHairColor)
mHairColor = minHairColor;
mPlayer->setSprite(Net::getCharHandler()->hairSprite(),