Skip to content

Commit

Permalink
GDScript: Fix type name on error message for function parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
vnen committed Jan 9, 2020
1 parent 1aef8bf commit 76678b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gdscript/gdscript_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7872,7 +7872,7 @@ void GDScriptParser::_check_function_types(FunctionNode *p_function) {
if (!_is_type_compatible(p_function->argument_types[i], def_type, true)) {
String arg_name = p_function->arguments[i];
_set_error("Value type (" + def_type.to_string() + ") doesn't match the type of argument '" +
arg_name + "' (" + p_function->arguments[i] + ").",
arg_name + "' (" + p_function->argument_types[i].to_string() + ").",
p_function->line);
}
}
Expand Down

0 comments on commit 76678b2

Please sign in to comment.