summaryrefslogtreecommitdiff
path: root/src/gui/windows/charcreatedialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/charcreatedialog.cpp')
-rw-r--r--src/gui/windows/charcreatedialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp
index b172f788c..91e1c16cc 100644
--- a/src/gui/windows/charcreatedialog.cpp
+++ b/src/gui/windows/charcreatedialog.cpp
@@ -160,7 +160,7 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent,
if (!maxHairColor)
maxHairColor = ColorDB::getHairSize();
if (!maxHairStyle)
- maxHairStyle = mPlayer->getNumOfHairstyles();
+ maxHairStyle = ItemDB::getNumOfHairstyles();
if (maxHairStyle)
{
@@ -723,9 +723,9 @@ void CharCreateDialog::setDefaultGender(const GenderT gender)
void CharCreateDialog::updateHair()
{
if (mHairStyle <= 0)
- mHairStyle = Being::getNumOfHairstyles() - 1;
+ mHairStyle = ItemDB::getNumOfHairstyles() - 1;
else
- mHairStyle %= Being::getNumOfHairstyles();
+ mHairStyle %= ItemDB::getNumOfHairstyles();
if (mHairStyle < CAST_S32(minHairStyle)
|| mHairStyle > CAST_S32(maxHairStyle))
{