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/client.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index f75ba53b9..adf2ffdb2 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -426,8 +426,7 @@ void Client::gameInit() branding.getValue("defaultServerType", "tmwathena")); } - if (chatLogger) - chatLogger->setServerName(mCurrentServer.hostname); + chatLogger->setServerName(mCurrentServer.hostname); if (loginData.username.empty() && loginData.remember) loginData.username = serverConfig.getValue("username", ""); -- cgit v1.2.3-70-g09d2