summaryrefslogtreecommitdiff
path: root/scene/animation/animation_tree_player.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-12-16 08:34:57 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-12-16 08:34:57 -0300
commitf65eb470ae5d373a28921b648dbac962deb0b008 (patch)
treeb8b520bb78becb29ca8e5f68bbc63c8ecb2af8d9 /scene/animation/animation_tree_player.cpp
parentfb01d18251769ae58e2a0db79666a286379ef16f (diff)
-fix function calls in animationtree, closes #2789
Diffstat (limited to 'scene/animation/animation_tree_player.cpp')
-rw-r--r--scene/animation/animation_tree_player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/animation_tree_player.cpp b/scene/animation/animation_tree_player.cpp
index c04c653819..eeb2e6aa32 100644
--- a/scene/animation/animation_tree_player.cpp
+++ b/scene/animation/animation_tree_player.cpp
@@ -837,7 +837,7 @@ void AnimationTreePlayer::_process_animation(float p_delta) {
StringName method = a->method_track_get_name(tr.local_track,E->get());
Vector<Variant> args=a->method_track_get_params(tr.local_track,E->get());
- ERR_CONTINUE(args.size()!=VARIANT_ARG_MAX);
+ args.resize(VARIANT_ARG_MAX);
tr.track->node->call(method,args[0],args[1],args[2],args[3],args[4]);
}
} break;