Rename Variant::is_ref() to is_ref_counted()
This commit is contained in:
parent
8b8e858778
commit
7b0ed2aa5e
10 changed files with 15 additions and 15 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue