diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-29 17:45:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-29 17:45:52 +0300 |
commit | 2d32dc27210d16102f9200de115f2c3f79a5cb22 (patch) | |
tree | 5aa84ebe6c5c1d708b14bee2bf0ce95df714fc1d /src/gui/windows/charcreatedialog.cpp | |
parent | 7bdb50605562e47f1d6ae134881c09bd42293be5 (diff) | |
download | plus-2d32dc27210d16102f9200de115f2c3f79a5cb22.tar.gz plus-2d32dc27210d16102f9200de115f2c3f79a5cb22.tar.bz2 plus-2d32dc27210d16102f9200de115f2c3f79a5cb22.tar.xz plus-2d32dc27210d16102f9200de115f2c3f79a5cb22.zip |
Use BeingTypeId in Being for subtypeid.
Diffstat (limited to 'src/gui/windows/charcreatedialog.cpp')
-rw-r--r-- | src/gui/windows/charcreatedialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp index 917cc51fb..f37749756 100644 --- a/src/gui/windows/charcreatedialog.cpp +++ b/src/gui/windows/charcreatedialog.cpp @@ -124,7 +124,7 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent, mCancelButton(new Button(this, _("Cancel"), "cancel", this)), mPlayer(new Being(BeingId_zero, ActorType::Player, - static_cast<uint16_t>(0U), + BeingTypeId_zero, nullptr)), mPlayerBox(new PlayerBox(this, mPlayer, "charcreate_playerbox.xml", "charcreate_selectedplayerbox.xml")), @@ -652,7 +652,7 @@ void CharCreateDialog::updateLook() { mLook = 0; } - mPlayer->setSubtype(static_cast<uint16_t>(mRace), + mPlayer->setSubtype(fromInt(mRace, BeingTypeId), static_cast<uint8_t>(mLook)); if (mRaceNameLabel) { |