summaryrefslogtreecommitdiff
path: root/scene/3d/character_camera.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/3d/character_camera.cpp')
-rw-r--r--scene/3d/character_camera.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/character_camera.cpp b/scene/3d/character_camera.cpp
index ce047f91c2..9feda1b72f 100644
--- a/scene/3d/character_camera.cpp
+++ b/scene/3d/character_camera.cpp
@@ -369,7 +369,7 @@ void CharacterCamera::_notification(int p_what) {
Node* parent = get_parent();
while (parent) {
- PhysicsBody* p = parent->cast_to<PhysicsBody>();
+ PhysicsBody* p = Object::cast_to<PhysicsBody>(parent);
if (p) {
target_body = p->get_body();
break;