diff options
Diffstat (limited to 'scene/resources/polygon_path_finder.h')
-rw-r--r-- | scene/resources/polygon_path_finder.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scene/resources/polygon_path_finder.h b/scene/resources/polygon_path_finder.h index f29299055e..baee4dc20d 100644 --- a/scene/resources/polygon_path_finder.h +++ b/scene/resources/polygon_path_finder.h @@ -48,10 +48,11 @@ class PolygonPathFinder : public Resource { int points[2]; _FORCE_INLINE_ bool operator<(const Edge &p_edge) const { - if (points[0] == p_edge.points[0]) + if (points[0] == p_edge.points[0]) { return points[1] < p_edge.points[1]; - else + } else { return points[0] < p_edge.points[0]; + } } Edge(int a = 0, int b = 0) { |