summaryrefslogtreecommitdiff
path: root/src/gui/windows
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
parentcb0c0ebe58e3b9582f4a6470c41dde6a067f4256 (diff)
downloadmv-1407c0b283dd1ab239c62d9560ebe52aa711adee.tar.gz
mv-1407c0b283dd1ab239c62d9560ebe52aa711adee.tar.bz2
mv-1407c0b283dd1ab239c62d9560ebe52aa711adee.tar.xz
mv-1407c0b283dd1ab239c62d9560ebe52aa711adee.zip
Add missing check in character select dialog.
Diffstat (limited to 'src/gui/windows')
-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