Fixes infinite loop in NavPolygonInstance warnings

This commit is contained in:
Cédric Fuchs 2017-10-26 13:02:04 +02:00
parent 1063ddfeb5
commit c42bbe1073

View file

@ -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.");