Rename Variant::is_ref() to is_ref_counted()

This commit is contained in:
Pedro J. Estébanez 2021-08-26 21:37:17 +02:00
parent 8b8e858778
commit 7b0ed2aa5e
10 changed files with 15 additions and 15 deletions

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;