1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fix: prevent possible int16_t overflow

This commit is contained in:
Evgeny Malygin
2024-03-29 05:37:47 +02:00
committed by GitHub
parent 08db09eaff
commit 54405e33bc
2 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ GlobalLobbyProcessor::GlobalLobbyProcessor(CVCMIServer & owner)
void GlobalLobbyProcessor::establishNewConnection()
{
std::string hostname = settings["lobby"]["hostname"].String();
int16_t port = settings["lobby"]["port"].Integer();
uint16_t port = settings["lobby"]["port"].Integer();
owner.getNetworkHandler().connectToRemote(*this, hostname, port);
}