Fix missing return on Navigation2D::get_closest_point_owner

(cherry picked from commit b9023715e2)
This commit is contained in:
Marcelo Fernandez 2018-05-17 09:07:25 -03:00 committed by Rémi Verschelde
parent 13a90fdd89
commit f85b2a62f7
1 changed files with 1 additions and 1 deletions

View File

@ -671,7 +671,7 @@ Object *Navigation2D::get_closest_point_owner(const Vector2 &p_point) {
if (Geometry::is_point_in_triangle(p_point, _get_vertex(p.edges[0].point), _get_vertex(p.edges[i - 1].point), _get_vertex(p.edges[i].point))) { if (Geometry::is_point_in_triangle(p_point, _get_vertex(p.edges[0].point), _get_vertex(p.edges[i - 1].point), _get_vertex(p.edges[i].point))) {
E->get().owner; return E->get().owner;
} }
} }
} }