Fixed bug with default arguments in gdscript, closes #2024

This commit is contained in:
Juan Linietsky committed 2016-01-03 21:11:11 -03:00
1 parent e0eff65fc0
commit cb39db0b02
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -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) {