diff options
| author | Juan Linietsky | 2017-09-12 07:58:18 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-09-12 07:58:54 -0300 |
| commit | 1c5376ae5951a4e47b972244cd2ec47760469b0c (patch) | |
| tree | a7c20e5e0c5c0f65dcd794cca56f17a85256ae8e /scene/animation/animation_tree_player.cpp | |
| parent | aabbd00284640a4789f96702c134ea40b11b402e (diff) | |
| download | godot-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.cpp | 1 |
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) |
