summaryrefslogtreecommitdiffstats
path: root/tests/scene/test_viewport.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scene/test_viewport.h')
-rw-r--r--tests/scene/test_viewport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/scene/test_viewport.h b/tests/scene/test_viewport.h
index 2f04dc9164..b6caef46b4 100644
--- a/tests/scene/test_viewport.h
+++ b/tests/scene/test_viewport.h
@@ -1579,7 +1579,7 @@ TEST_CASE("[SceneTree][Viewport] Physics Picking 2D") {
PickingCollider pc;
pc.a = memnew(TestArea2D);
pc.c = memnew(CollisionShape2D);
- pc.r = Ref<RectangleShape2D>(memnew(RectangleShape2D));
+ pc.r.instantiate();
pc.r->set_size(Size2(150, 150));
pc.c->set_shape(pc.r);
pc.a->add_child(pc.c);