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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user