1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Use ui16 instead of uint for connectionAttemptCount to fix MinGW build

This commit is contained in:
Alexander Wilms
2023-09-27 19:51:29 +02:00
parent e1401d26c5
commit a66d8ecb8f

View File

@@ -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); 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) while(!c && state != EClientState::CONNECTION_CANCELLED)
{ {
connectionAttemptCount++; connectionAttemptCount++;