From 07fd84b679fd6958b7e669a96c78783875e1b949 Mon Sep 17 00:00:00 2001 From: Giacomo Pozzoni Date: Tue, 4 Aug 2020 09:36:47 +0000 Subject: Core/Misc: Fix static analysis issues (#25194) --- src/server/authserver/Server/AuthSession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/authserver/Server/AuthSession.cpp') diff --git a/src/server/authserver/Server/AuthSession.cpp b/src/server/authserver/Server/AuthSession.cpp index 0c803798074..9260558c613 100644 --- a/src/server/authserver/Server/AuthSession.cpp +++ b/src/server/authserver/Server/AuthSession.cpp @@ -389,7 +389,7 @@ void AuthSession::LogonChallengeCallback(PreparedQueryResult result) TC_LOG_DEBUG("server.authserver", "[AuthChallenge] Account '%s' is not locked to ip", _accountInfo.Login.c_str()); if (_accountInfo.LockCountry.empty() || _accountInfo.LockCountry == "00") TC_LOG_DEBUG("server.authserver", "[AuthChallenge] Account '%s' is not locked to country", _accountInfo.Login.c_str()); - else if (!_accountInfo.LockCountry.empty() && !_ipCountry.empty()) + else if (!_ipCountry.empty()) { TC_LOG_DEBUG("server.authserver", "[AuthChallenge] Account '%s' is locked to country: '%s' Player country is '%s'", _accountInfo.Login.c_str(), _accountInfo.LockCountry.c_str(), _ipCountry.c_str()); if (_ipCountry != _accountInfo.LockCountry) -- cgit v1.2.3