From 1407c0b283dd1ab239c62d9560ebe52aa711adee Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 8 Oct 2014 11:15:06 +0300 Subject: Add missing check in character select dialog. --- src/gui/windows/charselectdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') 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 -- cgit v1.2.3-70-g09d2