summaryrefslogtreecommitdiff
path: root/src/gui/windows/charselectdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-08 11:15:06 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-08 11:15:06 +0300
commit1407c0b283dd1ab239c62d9560ebe52aa711adee (patch)
tree5e3ec0eb5429ebf62035cfc6902c34d0f01539ae /src/gui/windows/charselectdialog.cpp
parentcb0c0ebe58e3b9582f4a6470c41dde6a067f4256 (diff)
downloadplus-1407c0b283dd1ab239c62d9560ebe52aa711adee.tar.gz
plus-1407c0b283dd1ab239c62d9560ebe52aa711adee.tar.bz2
plus-1407c0b283dd1ab239c62d9560ebe52aa711adee.tar.xz
plus-1407c0b283dd1ab239c62d9560ebe52aa711adee.zip
Add missing check in character select dialog.
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r--src/gui/windows/charselectdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp
index 768de6c03..5ec3ab2b7 100644
--- a/src/gui/windows/charselectdialog.cpp
+++ b/src/gui/windows/charselectdialog.cpp
@@ -596,7 +596,7 @@ void CharSelectDialog::updateState()
LocalPlayer *const player = mCharacterEntries[
idx]->getCharacter()->dummy;
- if (player)
+ if (player && mRenameButton)
mRenameButton->setEnabled(player->getRename() ? true : false);
}
else