Rename Variant::is_ref() to is_ref_counted()
This commit is contained in:
@ -1532,7 +1532,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
|
||||
}
|
||||
} else if (methodstr == "free") {
|
||||
if (err.error == Callable::CallError::CALL_ERROR_INVALID_METHOD) {
|
||||
if (base->is_ref()) {
|
||||
if (base->is_ref_counted()) {
|
||||
err_text = "Attempted to free a reference.";
|
||||
OPCODE_BREAK;
|
||||
} else if (base->get_type() == Variant::OBJECT) {
|
||||
@ -1620,7 +1620,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
|
||||
}
|
||||
} else if (methodstr == "free") {
|
||||
if (err.error == Callable::CallError::CALL_ERROR_INVALID_METHOD) {
|
||||
if (base->is_ref()) {
|
||||
if (base->is_ref_counted()) {
|
||||
err_text = "Attempted to free a reference.";
|
||||
OPCODE_BREAK;
|
||||
} else if (base->get_type() == Variant::OBJECT) {
|
||||
|
||||
Reference in New Issue
Block a user