summaryrefslogtreecommitdiffstats
path: root/scene/animation/animation_blend_tree.cpp
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-06-03 21:52:50 +0200
committerqarmin <mikrutrafal54@gmail.com>2019-06-03 21:52:50 +0200
commit8245db869f05a86e88338236d22765b87cc71db8 (patch)
tree9cad264ada4820d48d6952f1a5564b32cb1619f2 /scene/animation/animation_blend_tree.cpp
parent8c923fc61740afd560e6c814f7ef19b0cdc30112 (diff)
downloadredot-engine-8245db869f05a86e88338236d22765b87cc71db8.tar.gz
Small fixes to unrechable code, possibly overflows, using NULL pointers
Diffstat (limited to 'scene/animation/animation_blend_tree.cpp')
-rw-r--r--scene/animation/animation_blend_tree.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}