Fix crash when executing AnimationTreePlayer.are_nodes_connected

This commit is contained in:
Haoyu Qiu 2022-08-01 23:26:40 +08:00
parent ef9e2c8ca8
commit 9d923764c9

View File

@ -1399,6 +1399,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;
}