diff options
author | kobewi <kobewi4e@gmail.com> | 2021-08-02 14:15:40 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2021-08-02 14:15:40 +0200 |
commit | 053f20be769b5e8dfe76d8ea8a086a07a1b17db9 (patch) | |
tree | fea08c83a9e93ab6307204eaa4852d129561375e /scene | |
parent | 33fd41472c7fb54280144fe46326cd6ffe9fc8af (diff) |
Add null check to Tween.bind_node()
Diffstat (limited to 'scene')
-rw-r--r-- | scene/animation/tween.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/animation/tween.cpp b/scene/animation/tween.cpp index a57e986877..542011618d 100644 --- a/scene/animation/tween.cpp +++ b/scene/animation/tween.cpp @@ -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; |