Skip to content

Commit e1b4101

Browse files
committed
Merge pull request #108072 from dalexeev/gds-fix-make-function
GDScript: Fix `GDScriptLanguage::make_function()`
2 parents eaa5b1f + c8bb21e commit e1b4101

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)