Rename Variant::is_ref() to is_ref_counted()

This commit is contained in:
Pedro J. Estébanez committed 2022-01-20 18:46:25 +01:00
1 parent 8b8e858778
commit 7b0ed2aa5e
10 files changed
+15 -15

No files matched your search

+1 -1
View File
@@ -248,7 +248,7 @@ Variant GDScriptFunctionState::resume(const Variant &p_arg) {
// If the return value is a GDScriptFunctionState reference,
// then the function did await again after resuming.
if (ret.is_ref()) {
if (ret.is_ref_counted()) {
GDScriptFunctionState *gdfs = Object::cast_to<GDScriptFunctionState>(ret);
if (gdfs && gdfs->function == function) {
completed = false;