From 04688b92fff1d6bbec9335b354f3751ddc473379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Fri, 4 Jun 2021 18:03:15 +0200 Subject: Rename Reference to RefCounted --- modules/gdscript/tests/gdscript_test_runner.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/gdscript/tests/gdscript_test_runner.cpp') diff --git a/modules/gdscript/tests/gdscript_test_runner.cpp b/modules/gdscript/tests/gdscript_test_runner.cpp index cda348f774..67bc927517 100644 --- a/modules/gdscript/tests/gdscript_test_runner.cpp +++ b/modules/gdscript/tests/gdscript_test_runner.cpp @@ -511,9 +511,9 @@ GDScriptTest::TestResult GDScriptTest::execute_test_code(bool p_is_generating) { // Create object instance for test. Object *obj = ClassDB::instance(script->get_native()->get_name()); - Ref obj_ref; - if (obj->is_reference()) { - obj_ref = Ref(Object::cast_to(obj)); + Ref obj_ref; + if (obj->is_ref_counted()) { + obj_ref = Ref(Object::cast_to(obj)); } obj->set_script(script); GDScriptInstance *instance = static_cast(obj->get_script_instance()); -- cgit v1.2.3