diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-06 16:35:47 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-06 16:35:47 -0600 |
commit | 82f9e929429f5c8ff2612ae679fc0c620231f70d (patch) | |
tree | d1598386f5073a55646a35a7434ee3a5c077cce1 /src/gui/charcreatedialog.cpp | |
parent | 8209e4672c5e11e5d7bbfb1fcfb081eda1763a6d (diff) | |
download | mana-82f9e929429f5c8ff2612ae679fc0c620231f70d.tar.gz mana-82f9e929429f5c8ff2612ae679fc0c620231f70d.tar.bz2 mana-82f9e929429f5c8ff2612ae679fc0c620231f70d.tar.xz mana-82f9e929429f5c8ff2612ae679fc0c620231f70d.zip |
Fix CharCreateDialog
Diffstat (limited to 'src/gui/charcreatedialog.cpp')
-rw-r--r-- | src/gui/charcreatedialog.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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<int> 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<std::string> labels, delete mAttributeValue[i]; } + mAttributeLabel.resize(labels.size()); + mAttributeSlider.resize(labels.size()); + mAttributeValue.resize(labels.size()); + int w = 200; int h = 330; |