Merge pull request #18971 from marcelofg55/missing_return

Fix missing return on Navigation2D::get_closest_point_owner
This commit is contained in:
Juan Linietsky 2018-05-17 17:46:16 -03:00 committed by GitHub
commit 3183375135
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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))) {
E->get().owner;
return E->get().owner;
}
}
}