diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-02-18 19:37:43 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-02-18 19:41:34 +0000 |
commit | 35ea5c4f99dde984f9b22dd92699c24ac46dc718 (patch) | |
tree | 05f3b3aafc83ee9e36c482fa5fca1d900b550ad4 | |
parent | faa1a1d9d24008fee298ca688d76a684af96d0a2 (diff) | |
download | mana-client-35ea5c4f99dde984f9b22dd92699c24ac46dc718.tar.gz mana-client-35ea5c4f99dde984f9b22dd92699c24ac46dc718.tar.bz2 mana-client-35ea5c4f99dde984f9b22dd92699c24ac46dc718.tar.xz mana-client-35ea5c4f99dde984f9b22dd92699c24ac46dc718.zip |
Move check to a more appropriate place
It shouldn't have been moved to where it was in the first place, as it
doesn't have any effecxt on that code, but was originally on the other
code (where it is now).
-rw-r--r-- | src/gui/char_select.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp index 34218477..6d5e082a 100644 --- a/src/gui/char_select.cpp +++ b/src/gui/char_select.cpp @@ -152,11 +152,11 @@ void CharSelectDialog::action(const gcn::ActionEvent &event) else if (event.getId() == "newdel") { // Check for a character - if (mCharInfo->getEntry() && n_character <= MAX_SLOT + 1) + if (mCharInfo->getEntry()) { new CharDeleteConfirm(this); } - else + else if (n_character <= MAX_SLOT) { // Start new character dialog CharCreateDialog *charCreateDialog = |