From c42bbe1073960f1e326955fc327cfe50ab4e2407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Fuchs?= Date: Thu, 26 Oct 2017 13:02:04 +0200 Subject: Fixes infinite loop in NavPolygonInstance warnings --- scene/2d/navigation_polygon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/2d/navigation_polygon.cpp b/scene/2d/navigation_polygon.cpp index 35f94bff59..c53241e985 100644 --- a/scene/2d/navigation_polygon.cpp +++ b/scene/2d/navigation_polygon.cpp @@ -452,7 +452,7 @@ String NavigationPolygonInstance::get_configuration_warning() const { return String(); } - c = Object::cast_to(get_parent()); + c = Object::cast_to(c->get_parent()); } return TTR("NavigationPolygonInstance must be a child or grandchild to a Navigation2D node. It only provides navigation data."); -- cgit v1.2.3