From fffbd86a1014ad169ed2d68ea58cdddf346faa14 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 21 Jul 2015 00:47:44 +0300 Subject: Add missing checks and non null attributes. --- src/game.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/game.cpp') 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(); -- cgit v1.2.3-70-g09d2