aboutsummaryrefslogtreecommitdiff
path: root/scene/animation/animation_tree_player.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-09-12 07:58:18 -0300
committerJuan Linietsky2017-09-12 07:58:54 -0300
commit1c5376ae5951a4e47b972244cd2ec47760469b0c (patch)
treea7c20e5e0c5c0f65dcd794cca56f17a85256ae8e /scene/animation/animation_tree_player.cpp
parentaabbd00284640a4789f96702c134ea40b11b402e (diff)
downloadgodot-1c5376ae5951a4e47b972244cd2ec47760469b0c.tar.gz
godot-1c5376ae5951a4e47b972244cd2ec47760469b0c.tar.zst
godot-1c5376ae5951a4e47b972244cd2ec47760469b0c.zip
Diffstat (limited to 'scene/animation/animation_tree_player.cpp')
-rw-r--r--scene/animation/animation_tree_player.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/animation/animation_tree_player.cpp b/scene/animation/animation_tree_player.cpp
index e2330eb0d..7a5c7e450 100644
--- a/scene/animation/animation_tree_player.cpp
+++ b/scene/animation/animation_tree_player.cpp
@@ -1156,6 +1156,7 @@ void AnimationTreePlayer::transition_node_set_xfade_time(const StringName &p_nod
}
void AnimationTreePlayer::TransitionNode::set_current(int p_current) {
+
ERR_FAIL_INDEX(p_current, inputs.size());
if (current == p_current)