summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-14 19:10:55 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-14 19:10:55 +0300
commit8660f14a94af91d42d3c8aae1b370f47cad9720b (patch)
tree777b5782c3c6e97c575c7ca9a54d2ef55d2d07b1 /src/game.cpp
parent1d3e44a5d4e50d18e614a888c6cd3b8cccdf7da4 (diff)
downloadplus-8660f14a94af91d42d3c8aae1b370f47cad9720b.tar.gz
plus-8660f14a94af91d42d3c8aae1b370f47cad9720b.tar.bz2
plus-8660f14a94af91d42d3c8aae1b370f47cad9720b.tar.xz
plus-8660f14a94af91d42d3c8aae1b370f47cad9720b.zip
Fix some pointer to bool conversions.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index b1687e953..08f123bce 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -200,7 +200,7 @@ static void createGuiWindows()
// Create dialogs
CREATEWIDGETV0(emoteWindow, EmoteWindow);
delete2(debugChatTab)
- if (chatWindow)
+ if (chatWindow != nullptr)
{
chatWindow->scheduleDelete();
chatWindow = nullptr;
@@ -227,7 +227,7 @@ static void createGuiWindows()
CREATEWIDGETV0(shopWindow, ShopWindow);
CREATEWIDGETV0(skillDialog, SkillDialog);
CREATEWIDGETV0(minimap, Minimap);
- if (debugWindow)
+ if (debugWindow != nullptr)
{
debugWindow->scheduleDelete();
debugWindow = nullptr;