1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-15 20:03:15 +02:00

Use host and port from config

This commit is contained in:
nordsoft
2022-10-04 18:45:54 +04:00
parent a9ad583158
commit 83f4a5b561

View File

@@ -673,7 +673,7 @@ void CServerHandler::restoreLastSession()
myNames.push_back(name.String());
resetStateForLobby(StartInfo::LOAD_GAME, &myNames);
screenType = ESelectionScreen::loadGame;
justConnectToServer("127.0.0.1", 3030);
justConnectToServer(settings["server"]["server"].String(), settings["server"]["port"].Integer());
};
auto cleanUpSession = []()