mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +00:00
GDScript: Fix GDScriptLanguage::make_function()
This commit is contained in:
parent
ebc36a7225
commit
c8bb21e68b
1 changed files with 1 additions and 1 deletions
|
|
@ -545,7 +545,7 @@ String GDScriptLanguage::make_function(const String &p_class, const String &p_na
|
|||
result += name_unstripped.strip_edges();
|
||||
|
||||
if (type_hints) {
|
||||
const String type_stripped = p_args[i].right(name_unstripped.length() + 1).strip_edges();
|
||||
const String type_stripped = p_args[i].substr(name_unstripped.length() + 1).strip_edges();
|
||||
if (!type_stripped.is_empty()) {
|
||||
result += ": " + type_stripped;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue