Skip to content

Commit c8bb21e

Browse files
committed
GDScript: Fix GDScriptLanguage::make_function()
1 parent ebc36a7 commit c8bb21e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/gdscript/gdscript_editor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ String GDScriptLanguage::make_function(const String &p_class, const String &p_na
545545
result += name_unstripped.strip_edges();
546546

547547
if (type_hints) {
548-
const String type_stripped = p_args[i].right(name_unstripped.length() + 1).strip_edges();
548+
const String type_stripped = p_args[i].substr(name_unstripped.length() + 1).strip_edges();
549549
if (!type_stripped.is_empty()) {
550550
result += ": " + type_stripped;
551551
}

0 commit comments

Comments
 (0)