aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBojidar Marinov2017-10-20 16:55:47 +0300
committerBojidar Marinov2017-10-20 16:55:47 +0300
commita6472d034429b202f16b86c2ee20b2066aa90026 (patch)
treee6aa9c90e42854f9a8f3fc8b613e1bf4aa7c613b
parentf52ab8d86418a67ddee247ed7765e72935b0c57f (diff)
downloadgodot-a6472d034429b202f16b86c2ee20b2066aa90026.tar.gz
godot-a6472d034429b202f16b86c2ee20b2066aa90026.tar.zst
godot-a6472d034429b202f16b86c2ee20b2066aa90026.zip
-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 352ec3b30..35f94bff5 100644
--- a/scene/2d/navigation_polygon.cpp
+++ b/scene/2d/navigation_polygon.cpp
@@ -329,7 +329,7 @@ void NavigationPolygonInstance::_notification(int p_what) {
break;
}
- c = Object::cast_to<Node2D>(get_parent());
+ c = Object::cast_to<Node2D>(c->get_parent());
}
} break;