From f85b2a62f730c1b4be29ca3bc905e9abdf7f5c1f Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Thu, 17 May 2018 09:07:25 -0300 Subject: [PATCH] Fix missing return on Navigation2D::get_closest_point_owner (cherry picked from commit b9023715e2d2f522cd4d2c38961486eae68c50af) --- scene/2d/navigation2d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/2d/navigation2d.cpp b/scene/2d/navigation2d.cpp index c52b3bdae34..15d497caeaf 100644 --- a/scene/2d/navigation2d.cpp +++ b/scene/2d/navigation2d.cpp @@ -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; } } }