diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-11-20 05:25:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-11-20 05:25:45 +0300 |
commit | 5d4be5df7aaac5186c263caa9354891fec66d1c3 (patch) | |
tree | bfdf04e87d5527f493cc8e29d2a98c2c8d0efa94 | |
parent | 10cf52b5ab6a9e1bb8328d9859b11d885fd5eef9 (diff) | |
download | plus-5d4be5df7aaac5186c263caa9354891fec66d1c3.tar.gz plus-5d4be5df7aaac5186c263caa9354891fec66d1c3.tar.bz2 plus-5d4be5df7aaac5186c263caa9354891fec66d1c3.tar.xz plus-5d4be5df7aaac5186c263caa9354891fec66d1c3.zip |
Fix compilation warnings.
-rw-r--r-- | src/gui/charcreatedialog.cpp | 4 |
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(), |