mirror of
https://github.com/godotengine/godot.git
synced 2024-12-12 14:14:08 +00:00
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
@ -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 New Issue
Block a user