From b8f0e1755ae8c6acf9bc681a83f18ef6ff0a1172 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Wed, 18 Feb 2009 19:37:43 +0000 Subject: 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). --- src/gui/char_select.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/char_select.cpp') diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp index ae78b384..bad6d8de 100644 --- a/src/gui/char_select.cpp +++ b/src/gui/char_select.cpp @@ -148,11 +148,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 = -- cgit v1.2.3-70-g09d2