diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-08 11:15:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-08 11:15:06 +0300 |
commit | 1407c0b283dd1ab239c62d9560ebe52aa711adee (patch) | |
tree | 5e3ec0eb5429ebf62035cfc6902c34d0f01539ae /src/gui/windows/charselectdialog.cpp | |
parent | cb0c0ebe58e3b9582f4a6470c41dde6a067f4256 (diff) | |
download | manaplus-1407c0b283dd1ab239c62d9560ebe52aa711adee.tar.gz manaplus-1407c0b283dd1ab239c62d9560ebe52aa711adee.tar.bz2 manaplus-1407c0b283dd1ab239c62d9560ebe52aa711adee.tar.xz manaplus-1407c0b283dd1ab239c62d9560ebe52aa711adee.zip |
Add missing check in character select dialog.
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r-- | src/gui/windows/charselectdialog.cpp | 2 |
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 |