浏览代码

Use ui16 instead of uint for connectionAttemptCount to fix MinGW build

Alexander Wilms 2 年之前
父节点
当前提交
a66d8ecb8f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/CServerHandler.cpp

+ 1 - 1
client/CServerHandler.cpp

@@ -274,7 +274,7 @@ void CServerHandler::justConnectToServer(const std::string & addr, const ui16 po
 
 	logNetwork->info("\nWaiting for %d ms between each of the %d attempts to connect", sleepDuration.count(), maxConnectionAttempts);
 	
-	uint connectionAttemptCount = 0;
+	ui16 connectionAttemptCount = 0;
 	while(!c && state != EClientState::CONNECTION_CANCELLED)
 	{
 		connectionAttemptCount++;