diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-01 20:04:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-01 20:04:35 +0300 |
commit | b8cdabbd20690d57930dce9dda949fca21a6233a (patch) | |
tree | ddd3d0a3bb4d83206b92ede95b330430e803e26b /src/gui/charselectdialog.cpp | |
parent | ab1f66527863c7fcce6c3ccedda0d5560dc063c7 (diff) | |
download | plus-b8cdabbd20690d57930dce9dda949fca21a6233a.tar.gz plus-b8cdabbd20690d57930dce9dda949fca21a6233a.tar.bz2 plus-b8cdabbd20690d57930dce9dda949fca21a6233a.tar.xz plus-b8cdabbd20690d57930dce9dda949fca21a6233a.zip |
Eliminate asserts from most files.
Diffstat (limited to 'src/gui/charselectdialog.cpp')
-rw-r--r-- | src/gui/charselectdialog.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/charselectdialog.cpp b/src/gui/charselectdialog.cpp index 28c7a083c..1942ebaeb 100644 --- a/src/gui/charselectdialog.cpp +++ b/src/gui/charselectdialog.cpp @@ -60,7 +60,6 @@ #include <guichan/font.hpp> #include <string> -#include <cassert> #include "debug.h" @@ -342,8 +341,8 @@ void CharSelectDialog::setCharacters(const Net::Characters &characters) void CharSelectDialog::lock() { - assert(!mLocked); - setLocked(true); + if (!mLocked) + setLocked(true); } void CharSelectDialog::unlock() |