mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +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(); | ||||
|  | ||||
| 	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); | ||||
|  | ||||
| 	preinitDLL(console); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user