Merge pull request #44006 from RandomShaper/gds_needless_check_3.2
Remove useless check in GDScript (3.2)
This commit is contained in:
commit
0a8cc0a565
1 changed files with 1 additions and 6 deletions
|
@ -374,12 +374,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
|
|||
}
|
||||
|
||||
if (p_instance) {
|
||||
if (p_instance->base_ref && static_cast<Reference *>(p_instance->owner)->is_referenced()) {
|
||||
|
||||
self = REF(static_cast<Reference *>(p_instance->owner));
|
||||
} else {
|
||||
self = p_instance->owner;
|
||||
}
|
||||
self = p_instance->owner;
|
||||
script = p_instance->script.ptr();
|
||||
} else {
|
||||
script = _script;
|
||||
|
|
Loading…
Reference in a new issue