summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index c9b65e60..204065a5 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -212,7 +212,7 @@ void Being::setHairColor(int color)
void Being::setHairStyle(int style)
{
hairStyle = style;
- if (hairStyle < 1 || hairStyle > 4)
+ if (hairStyle < 1 || hairStyle > NR_HAIR_STYLES)
{
hairStyle = 1;
}