Skip to content

Commit

Permalink
Update point.h
Browse files Browse the repository at this point in the history
  • Loading branch information
CLIDragon authored Dec 27, 2024
1 parent 04ea4a4 commit 9d54406
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/point.h
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,9 @@ std::optional<Point> find_point_closest_first( const Point &center, int min_dist
int x_init = std::max( min_dist, 1 );
point p {x_init, 1 - x_init};

point d { 1, 0 };
point d = point::east;

for( int i = ( int ) is_center_included; i < *n; i++ ) {
for( int i = is_center_included; i < *n; i++ ) {
const Point next = Point{ center.raw() + p.raw() };
if( predicate_fn( next ) ) {
return next;
Expand Down

0 comments on commit 9d54406

Please sign in to comment.