1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fixed bug with default arguments in gdscript, closes #2024

This commit is contained in:
Juan Linietsky
2016-01-03 21:11:11 -03:00
parent e0eff65fc0
commit cb39db0b02
2 changed files with 3 additions and 1 deletions

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) {