diff options
Diffstat (limited to 'scene/3d/path.cpp')
-rw-r--r-- | scene/3d/path.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/3d/path.cpp b/scene/3d/path.cpp index 0ca7f96fd7..19c9761091 100644 --- a/scene/3d/path.cpp +++ b/scene/3d/path.cpp @@ -174,8 +174,7 @@ void PathFollow::_notification(int p_what) { Node *parent = get_parent(); if (parent) { - path = parent->cast_to<Path>(); - if (path) { + if ((path = Object::cast_to<Path>(parent))) { _update_transform(); } } |