Add null check to Tween.bind_node()

This commit is contained in:
kobewi 2021-08-02 14:15:40 +02:00
parent 33fd41472c
commit 053f20be76

View file

@ -140,6 +140,8 @@ bool Tween::is_valid() {
}
Ref<Tween> Tween::bind_node(Node *p_node) {
ERR_FAIL_NULL_V(p_node, this);
bound_node = p_node->get_instance_id();
is_bound = true;
return this;