diff options
Diffstat (limited to 'src/gui/windowmanager.cpp')
-rw-r--r-- | src/gui/windowmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp index 978e6ae42..ab4224f25 100644 --- a/src/gui/windowmanager.cpp +++ b/src/gui/windowmanager.cpp @@ -133,7 +133,7 @@ void WindowManager::createWindows() CREATEWIDGETV0(spellPopup, SpellPopup); CREATEWIDGETV0(skillPopup, SkillPopup); delete2(debugChatTab); - if (chatWindow) + if (chatWindow != nullptr) { chatWindow->scheduleDelete(); chatWindow = nullptr; @@ -145,7 +145,7 @@ void WindowManager::createWindows() "#Debug", ChatTabType::DEBUG); debugChatTab->setAllowHighlight(false); chatWindow->setVisible(Visible_false); - if (debugWindow) + if (debugWindow != nullptr) { debugWindow->scheduleDelete(); debugWindow = nullptr; |