summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-21 00:47:44 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-21 00:47:44 +0300
commitfffbd86a1014ad169ed2d68ea58cdddf346faa14 (patch)
tree713c96fcf7421ca87f638d312e752179281cb8fe /src/game.cpp
parent1941b81a5a278f26a5d7e1f91903ab04c92e2cd1 (diff)
downloadplus-fffbd86a1014ad169ed2d68ea58cdddf346faa14.tar.gz
plus-fffbd86a1014ad169ed2d68ea58cdddf346faa14.tar.bz2
plus-fffbd86a1014ad169ed2d68ea58cdddf346faa14.tar.xz
plus-fffbd86a1014ad169ed2d68ea58cdddf346faa14.zip
Add missing checks and non null attributes.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/game.cpp b/src/game.cpp
index df2b99e64..b5e492ee5 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -275,13 +275,9 @@ static void createGuiWindows()
battleChatTab = nullptr;
}
- if (chatWindow)
- {
- chatWindow->showGMTab();
-
- if (!isSafeMode)
- chatWindow->loadState();
- }
+ chatWindow->showGMTab();
+ if (!isSafeMode)
+ chatWindow->loadState();
if (setupWindow)
setupWindow->externalUpdate();