From 3fae3f59aad1f1f2eee1e1bfa088672787bc9c78 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 5 Mar 2016 17:29:03 +0300 Subject: Move getNumOfHairstyles from being to itemdb. --- src/gui/windows/charcreatedialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/windows') 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)) { -- cgit v1.2.3-70-g09d2