summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/charcreatedialog.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp
index 1375b4b25..420d20c1c 100644
--- a/src/gui/windows/charcreatedialog.cpp
+++ b/src/gui/windows/charcreatedialog.cpp
@@ -438,11 +438,14 @@ void CharCreateDialog::action(const ActionEvent &event)
mCreateButton->setEnabled(false);
std::vector<int> atts;
- for (size_t i = 0, sz = mAttributeSlider.size(); i < sz; i++)
+ const size_t sz = mAttributeSlider.size();
+ for (size_t i = 0; i < sz; i++)
{
atts.push_back(CAST_S32(
mAttributeSlider[i]->getValue()));
}
+ for (size_t i = sz; i < 6; i ++)
+ atts.push_back(1);
const int characterSlot = mSlot;