Fix signedness mismatch warning in tunnel length check

This commit is contained in:
Jonathan G Rennison
2021-06-17 17:00:33 +01:00
parent a3d1b916d1
commit 96bfcd587b

View File

@@ -384,7 +384,7 @@ static TileIndex BuildTunnel(PathNode *current, TileIndex end_tile = INVALID_TIL
int end_z;
const uint tunnel_length_limit = std::min<uint>(_settings_game.construction.max_tunnel_length, 30);
for (int tunnel_length = 1;;tunnel_length++) {
for (uint tunnel_length = 1;; tunnel_length++) {
end_tile += delta;
if (!IsValidTile(end_tile)) return INVALID_TILE;