summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/chatwindow.cpp2
-rw-r--r--src/gui/windows/statuswindow.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index 0c7123631..7992c6262 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -670,7 +670,7 @@ void ChatWindow::chatInput(const std::string &message) const
if (tab != nullptr)
tab->chatInput(msg);
Game *const game = Game::instance();
- if (game)
+ if (game != nullptr)
game->setValidSpeed();
}
diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp
index 3dc7110b9..520bdefd0 100644
--- a/src/gui/windows/statuswindow.cpp
+++ b/src/gui/windows/statuswindow.cpp
@@ -260,7 +260,7 @@ void StatusWindow::addTabBasic(const std::string &name)
void StatusWindow::updateLevelLabel()
{
- if (!localPlayer)
+ if (localPlayer != nullptr)
return;
const int groupId = localPlayer->getGroupId();