summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-10-26 13:15:15 +0200
committerGitHub <noreply@github.com>2017-10-26 13:15:15 +0200
commit2987e6ce4ffc69da5efc0903cc00ce12e72d2125 (patch)
tree16766813d429d61966991aa3983bcf68708bb7f6
parent1063ddfeb52c796a3207a62142cc3b7ae3fbccb7 (diff)
parentc42bbe1073960f1e326955fc327cfe50ab4e2407 (diff)
Merge pull request #12413 from Adinimys/master
Fixes infinite loop in NavPolygonInstance warnings
-rw-r--r--scene/2d/navigation_polygon.cpp2
1 files changed, 1 insertions, 1 deletions
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<Node2D>(get_parent());
+ c = Object::cast_to<Node2D>(c->get_parent());
}
return TTR("NavigationPolygonInstance must be a child or grandchild to a Navigation2D node. It only provides navigation data.");