From 8245db869f05a86e88338236d22765b87cc71db8 Mon Sep 17 00:00:00 2001 From: qarmin Date: Mon, 3 Jun 2019 21:52:50 +0200 Subject: Small fixes to unrechable code, possibly overflows, using NULL pointers --- scene/animation/animation_blend_tree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/animation/animation_blend_tree.cpp') diff --git a/scene/animation/animation_blend_tree.cpp b/scene/animation/animation_blend_tree.cpp index e9b38ae990..20a09696e1 100644 --- a/scene/animation/animation_blend_tree.cpp +++ b/scene/animation/animation_blend_tree.cpp @@ -1049,7 +1049,7 @@ AnimationNodeBlendTree::ConnectionError AnimationNodeBlendTree::can_connect_node return CONNECTION_ERROR_NO_INPUT; } - if (!nodes.has(p_input_node)) { + if (p_input_node == p_output_node) { return CONNECTION_ERROR_SAME_NODE; } -- cgit v1.2.3