diff options
Diffstat (limited to 'src/gui/charcreatedialog.cpp')
-rw-r--r-- | src/gui/charcreatedialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/charcreatedialog.cpp b/src/gui/charcreatedialog.cpp index cff7d822..6b46d2ac 100644 --- a/src/gui/charcreatedialog.cpp +++ b/src/gui/charcreatedialog.cpp @@ -191,8 +191,10 @@ void CharCreateDialog::action(const gcn::ActionEvent &event) 0 : mHairStylesIds.at(mHairStyleId); int hairColor = mHairColorsIds.empty() ? 0 : mHairColorsIds.at(mHairColorId); + + Gender gender = mFemale->isSelected() ? Gender::Female : Gender::Male; Net::getCharHandler()->newCharacter(getName(), characterSlot, - mFemale->isSelected(), + gender, hairStyle, hairColor, mAttributes); } |