diff options
Diffstat (limited to 'src/gui/charcreatedialog.cpp')
-rw-r--r-- | src/gui/charcreatedialog.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/charcreatedialog.cpp b/src/gui/charcreatedialog.cpp index 52e59f095..6a2ad0bf3 100644 --- a/src/gui/charcreatedialog.cpp +++ b/src/gui/charcreatedialog.cpp @@ -501,7 +501,10 @@ void CharCreateDialog::updateHair() mHairStyleNameLabel->setCaption(item.getName()); mHairStyleNameLabel->adjustSize(); - mHairColor %= ColorDB::getHairSize(); + if (ColorDB::getHairSize()) + mHairColor %= ColorDB::getHairSize(); + else + mHairColor = 0; if (mHairColor < 0) mHairColor += ColorDB::getHairSize(); if (mHairColor < static_cast<signed>(minHairColor) |