diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-05 17:29:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-05 17:29:03 +0300 |
commit | 3fae3f59aad1f1f2eee1e1bfa088672787bc9c78 (patch) | |
tree | 570faffa2f7e786bc00feb2519031d6c46fedd0e /src/gui | |
parent | 34bc5498ea3098ca83d454b1745255f060ab2797 (diff) | |
download | plus-3fae3f59aad1f1f2eee1e1bfa088672787bc9c78.tar.gz plus-3fae3f59aad1f1f2eee1e1bfa088672787bc9c78.tar.bz2 plus-3fae3f59aad1f1f2eee1e1bfa088672787bc9c78.tar.xz plus-3fae3f59aad1f1f2eee1e1bfa088672787bc9c78.zip |
Move getNumOfHairstyles from being to itemdb.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/charcreatedialog.cpp | 6 |
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)) { |