summaryrefslogtreecommitdiff
path: root/src/player.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-11-02 02:41:08 +0000
committerIra Rice <irarice@gmail.com>2008-11-02 02:41:08 +0000
commit168eba19e2b4712c8410bd940e3bd1fbba746d1f (patch)
tree8d5dd87b59d65ad1c6f77b42bd95b44ec2c0de60 /src/player.cpp
parent842336f6d028dd8995b777439c9d1bf41f152d0f (diff)
downloadmana-168eba19e2b4712c8410bd940e3bd1fbba746d1f.tar.gz
mana-168eba19e2b4712c8410bd940e3bd1fbba746d1f.tar.bz2
mana-168eba19e2b4712c8410bd940e3bd1fbba746d1f.tar.xz
mana-168eba19e2b4712c8410bd940e3bd1fbba746d1f.zip
Fixed a hair color problem that Soft reported that I apparently broke when I de-hardcoded the hair colors.
Diffstat (limited to 'src/player.cpp')
-rw-r--r--src/player.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/player.cpp b/src/player.cpp
index c9d1e683..5fb5ffe9 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -160,6 +160,7 @@ void Player::setGender(int gender)
void Player::setHairStyle(int style, int color)
{
style = style < 0 ? mHairStyle : style % mNumberOfHairstyles;
+ color = color < 0 ? mHairColor : color % ColorDB::size();
if (style == mHairStyle && color == mHairColor) return;
Being::setHairStyle(style, color);