summaryrefslogtreecommitdiff
path: root/src/player.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-10-27 17:05:14 +0000
committerIra Rice <irarice@gmail.com>2008-10-27 17:05:14 +0000
commit0007b8e9497eacb506c8bfad34aad5adff10ba5a (patch)
tree5c256dac8cd142a762a948ef6a481789e3fbdf2c /src/player.cpp
parentf3beda85b284e57caf6e5c685174bcb2e608d9ce (diff)
downloadmana-0007b8e9497eacb506c8bfad34aad5adff10ba5a.tar.gz
mana-0007b8e9497eacb506c8bfad34aad5adff10ba5a.tar.bz2
mana-0007b8e9497eacb506c8bfad34aad5adff10ba5a.tar.xz
mana-0007b8e9497eacb506c8bfad34aad5adff10ba5a.zip
De-hardcoded the number of hair styles.
Diffstat (limited to 'src/player.cpp')
-rw-r--r--src/player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player.cpp b/src/player.cpp
index 37badcdc..c9d1e683 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -159,7 +159,7 @@ void Player::setGender(int gender)
void Player::setHairStyle(int style, int color)
{
- style = style < 0 ? mHairStyle : style % NR_HAIR_STYLES;
+ style = style < 0 ? mHairStyle : style % mNumberOfHairstyles;
if (style == mHairStyle && color == mHairColor) return;
Being::setHairStyle(style, color);