aboutsummaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorMarcelo Fernandez2018-05-17 09:07:25 -0300
committerMarcelo Fernandez2018-05-17 09:07:25 -0300
commitb9023715e2d2f522cd4d2c38961486eae68c50af (patch)
tree0ad2ea75c02f30ca7db0f447b5de33e8c56fdf82 /scene/2d
parentedc3e6b0daf4acfeb3565f0f799d304d945e5a0a (diff)
downloadgodot-b9023715e2d2f522cd4d2c38961486eae68c50af.tar.gz
godot-b9023715e2d2f522cd4d2c38961486eae68c50af.tar.zst
godot-b9023715e2d2f522cd4d2c38961486eae68c50af.zip
Diffstat (limited to 'scene/2d')
-rw-r--r--scene/2d/navigation2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/navigation2d.cpp b/scene/2d/navigation2d.cpp
index 4737e1411..16e038695 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;
}
}
}