summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/char_select.cpp4
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 =