diff --git a/Ship/Ship/WaterMap.cs b/Ship/Ship/WaterMap.cs index 59f21f6..c95a608 100644 --- a/Ship/Ship/WaterMap.cs +++ b/Ship/Ship/WaterMap.cs @@ -34,7 +34,7 @@ namespace Ship while (counter < 10) { int x = _random.Next(2, 49); - int y = _random.Next(3, 50); + int y = _random.Next(3, 49); var points = new int[] { _map[x, y], _map[x, y + 1], _map[x - 1, y + 1], _map[x + 1, y + 1] }; var forComparison = new int[] { _freeRoad, _freeRoad, _freeRoad, _freeRoad }; if (points.SequenceEqual(forComparison))