From 7ec908cbe7524046f5d50da10eb35c980e29f537 Mon Sep 17 00:00:00 2001 From: keldorkatarn Date: Tue, 24 Apr 2018 10:46:44 +0200 Subject: [PATCH] Fix another compiler warning. (C++'s auto is kind of a joke compared to C#'c var... why on earth do I leave it to the compiler to decide which type to use when it does so and then complains it's the wrong one....) --- src/network/network_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp index 3dd1c77c9..621b9dfff 100644 --- a/src/network/network_server.cpp +++ b/src/network/network_server.cpp @@ -490,7 +490,7 @@ NetworkRecvStatus ServerNetworkGameSocketHandler::SendNewGRFCheck() } // Send all the packets. - for (auto i = 0; i < grf_identifier_lists.size(); ++i) { + for (size_t i = 0; i < grf_identifier_lists.size(); ++i) { Packet *p = new Packet(PACKET_SERVER_CHECK_NEWGRFS); auto grf_ident_list = grf_identifier_lists[i]; -- 2.11.4.GIT