1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Code review fixes, Sonarcloud fixes

This commit is contained in:
Tomasz Zieliński
2024-03-04 21:23:17 +01:00
parent 1b2d01c25f
commit e7af9d5607
4 changed files with 14 additions and 13 deletions

View File

@@ -196,10 +196,7 @@ void CServerHandler::startLocalServerAndConnect(bool connectToLobby)
auto si = std::make_shared<StartInfo>();
auto lastDifficulty = settings["general"]["lastDifficulty"];
if (lastDifficulty.isNumber())
{
si->difficulty = lastDifficulty.Integer();
}
si->difficulty = lastDifficulty.Integer();
logNetwork->trace("\tStarting local server");
serverRunner->start(getLocalPort(), connectToLobby, si);