Skip to content

Commit

Permalink
Fix crash when executing AnimationTreePlayer.are_nodes_connected
Browse files Browse the repository at this point in the history
(cherry picked from commit 9d92376)
  • Loading branch information
timothyqiu authored and akien-mga committed Aug 1, 2022
1 parent 73e8a77 commit b56d1ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/animation/animation_tree_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1398,6 +1398,7 @@ bool AnimationTreePlayer::are_nodes_connected(const StringName &p_src_node, cons
ERR_FAIL_COND_V(p_src_node == p_dst_node, false);

NodeBase *dst = node_map[p_dst_node];
ERR_FAIL_INDEX_V(p_dst_input, dst->inputs.size(), false);

return dst->inputs[p_dst_input].node == p_src_node;
}
Expand Down

0 comments on commit b56d1ab

Please sign in to comment.