diff options
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/statuswindow.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp index e313cbc77..3dc7110b9 100644 --- a/src/gui/windows/statuswindow.cpp +++ b/src/gui/windows/statuswindow.cpp @@ -260,10 +260,12 @@ void StatusWindow::addTabBasic(const std::string &name) void StatusWindow::updateLevelLabel() { + if (!localPlayer) + return; + const int groupId = localPlayer->getGroupId(); const std::string &name = GroupDb::getName(groupId); - if (localPlayer != nullptr && - !name.empty()) + if (!name.empty()) { // TRANSLATORS: status window label mLvlLabel->setCaption(strprintf(_("Level: %d (%s %d)"), |