diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2017-12-07 02:19:56 +0100 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2017-12-07 02:19:56 +0100 |
commit | c68300b88da586aa3c7a7e35397cddd9e24c3fd1 (patch) | |
tree | ee008a000a12615226c68fbdb4d0cae87584a4e9 /modules/visual_script | |
parent | b38378dd6c963d71d0c1ad40c53b29588e581757 (diff) |
Fix function arg count not considered in VisualScript
Diffstat (limited to 'modules/visual_script')
-rw-r--r-- | modules/visual_script/visual_script.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/visual_script/visual_script.cpp b/modules/visual_script/visual_script.cpp index bb6c32e9e0..53d93798d9 100644 --- a/modules/visual_script/visual_script.cpp +++ b/modules/visual_script/visual_script.cpp @@ -2047,6 +2047,7 @@ void VisualScriptInstance::create(const Ref<VisualScript> &p_script, Object *p_o function.argument_count = func_node->get_argument_count(); function.max_stack += function.argument_count; function.flow_stack_size = func_node->is_stack_less() ? 0 : func_node->get_stack_size(); + max_input_args = MAX(max_input_args, function.argument_count); } //multiple passes are required to set up this complex thing.. |