summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-02-18 19:37:43 +0000
committerIra Rice <irarice@gmail.com>2009-02-18 12:59:43 -0700
commitb8f0e1755ae8c6acf9bc681a83f18ef6ff0a1172 (patch)
treecf1e59318fdfe264d326f0df554312287b9b405c /src
parent218303948fa3aa3fd139b47e303ed1f7c7cfd802 (diff)
downloadmana-client-b8f0e1755ae8c6acf9bc681a83f18ef6ff0a1172.tar.gz
mana-client-b8f0e1755ae8c6acf9bc681a83f18ef6ff0a1172.tar.bz2
mana-client-b8f0e1755ae8c6acf9bc681a83f18ef6ff0a1172.tar.xz
mana-client-b8f0e1755ae8c6acf9bc681a83f18ef6ff0a1172.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).
Diffstat (limited to 'src')
-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 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 =