diff options
| author | Juan Linietsky | 2016-01-03 21:11:11 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-01-03 21:11:11 -0300 |
| commit | cb39db0b02c2d69994e2cd523844a2a9d3087d85 (patch) | |
| tree | 457f95e6faf0b37755c0363dc873c32777e62c94 /modules/gdscript/gd_script.cpp | |
| parent | e0eff65fc0a807ecabc86194e0888e52cf682100 (diff) | |
| download | godot-cb39db0b02c2d69994e2cd523844a2a9d3087d85.tar.gz godot-cb39db0b02c2d69994e2cd523844a2a9d3087d85.tar.zst godot-cb39db0b02c2d69994e2cd523844a2a9d3087d85.zip | |
Diffstat (limited to 'modules/gdscript/gd_script.cpp')
| -rw-r--r-- | modules/gdscript/gd_script.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gd_script.cpp b/modules/gdscript/gd_script.cpp index 03e79393e..d753a9f16 100644 --- a/modules/gdscript/gd_script.cpp +++ b/modules/gdscript/gd_script.cpp @@ -221,6 +221,7 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a r_err.error=Variant::CallError::CALL_ERROR_TOO_MANY_ARGUMENTS; r_err.argument=_argument_count; + return Variant(); } else if (p_argcount < _argument_count - _default_arg_count) { |
