diff options
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 2 |
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); |