diff options
Diffstat (limited to 'src/gui/charcreatedialog.cpp')
-rw-r--r-- | src/gui/charcreatedialog.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/charcreatedialog.cpp b/src/gui/charcreatedialog.cpp index 87be2be3..86a8bf2b 100644 --- a/src/gui/charcreatedialog.cpp +++ b/src/gui/charcreatedialog.cpp @@ -50,8 +50,9 @@ #include <guichan/font.hpp> -CharCreateDialog::CharCreateDialog(Window *parent, int slot): +CharCreateDialog::CharCreateDialog(CharSelectDialog *parent, int slot): Window(_("Create Character"), true, parent), + mCharSelectDialog(parent), mSlot(slot) { mPlayer = new Player(0, 0, NULL); @@ -341,6 +342,11 @@ void CharCreateDialog::setFixedGender(bool fixed, Gender gender) } } +void CharCreateDialog::success() +{ + mCharSelectDialog->update(mSlot); +} + void CharCreateDialog::updateHair() { mHairStyle %= Being::getNumOfHairstyles(); |