mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 03:46:50 +01:00
Fix crash when executing AnimationTreePlayer.are_nodes_connected
This commit is contained in:
parent
4204828965
commit
a7f9cc21b7
@ -1403,6 +1403,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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user