diff --git a/src/point.h b/src/point.h index 0c41fb55bae92..d85c4dabfa452 100644 --- a/src/point.h +++ b/src/point.h @@ -404,11 +404,11 @@ std::optional find_point_closest_first( const Point ¢er, int min_dist } int x_init = std::max( min_dist, 1 ); - Point p(); + Point p; p.x = x_init; p.y = 1 - x_init; - Point d(); + Point d; d.x += 1; for( int i = 0; i < *n; i++ ) {