From 82f9e929429f5c8ff2612ae679fc0c620231f70d Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Mon, 6 Apr 2009 16:35:47 -0600 Subject: Fix CharCreateDialog --- src/gui/charcreatedialog.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/charcreatedialog.cpp b/src/gui/charcreatedialog.cpp index 662bebb7..aa7f7051 100644 --- a/src/gui/charcreatedialog.cpp +++ b/src/gui/charcreatedialog.cpp @@ -163,7 +163,7 @@ void CharCreateDialog::action(const gcn::ActionEvent &event) std::vector atts; for (int i = 0; i < mAttributeSlider.size(); i++) { - atts[i] = (int) mAttributeSlider[i]->getValue(); + atts.push_back((int) mAttributeSlider[i]->getValue()); } Net::getCharHandler()->newCharacter(getName(), mSlot, @@ -276,6 +276,10 @@ void CharCreateDialog::setAttributes(std::vector labels, delete mAttributeValue[i]; } + mAttributeLabel.resize(labels.size()); + mAttributeSlider.resize(labels.size()); + mAttributeValue.resize(labels.size()); + int w = 200; int h = 330; -- cgit v1.2.3-70-g09d2