From 6b49c4b1acde9fdd5a093a1f0f1dd0b2f753a38c Mon Sep 17 00:00:00 2001
From: Eugenio Favalli <elvenprogrammer@gmail.com>
Date: Wed, 19 Jul 2006 15:31:23 +0000
Subject: Fixed next/previous buttons behaviour in character selection dialog.

---
 src/gui/char_select.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp
index a1ce5dec..801b0ffe 100644
--- a/src/gui/char_select.cpp
+++ b/src/gui/char_select.cpp
@@ -148,8 +148,9 @@ void CharSelectDialog::action(const std::string& eventId)
         if (n_character < MAX_SLOT + 1)
         {
             // Start new character dialog
-            new CharCreateDialog(this, mCharInfo->getPos(), mNetwork, mSex);
             mCharInfo->lock();
+            new CharCreateDialog(this, mCharInfo->getPos(), mNetwork, mSex);
+            mCharInfo->unlock();
         }
     }
     else if (eventId == "delete")
-- 
cgit v1.2.3-70-g09d2