mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
CVCMIServer: do not crash if port not specified
This commit is contained in:
@@ -579,7 +579,8 @@ int main(int argc, char** argv)
|
|||||||
logConfig.configureDefault();
|
logConfig.configureDefault();
|
||||||
|
|
||||||
handleCommandOptions(argc, argv);
|
handleCommandOptions(argc, argv);
|
||||||
port = cmdLineOptions["port"].as<int>();
|
if(cmdLineOptions.count("port"))
|
||||||
|
port = cmdLineOptions["port"].as<int>();
|
||||||
logNetwork->info("Port %d will be used.", port);
|
logNetwork->info("Port %d will be used.", port);
|
||||||
|
|
||||||
preinitDLL(console);
|
preinitDLL(console);
|
||||||
|
|||||||
Reference in New Issue
Block a user