Skip to content

Commit f16d142

Browse files
committed
Ensure String.split generates an Array[String]
1 parent adff9b8 commit f16d142

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

std/gdscript/_std/String.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ extern class String {
6060
}
6161

6262
@:runtime public inline function split(delimiter: String): Array<String> {
63-
return untyped __gdscript__("Array({0}.split({1}))", this, delimiter);
63+
return untyped __gdscript__("Array(Array({0}.split({1})), Variant.Type.TYPE_STRING, \"\", null)", this, delimiter);
6464
}
6565

6666
@:runtime public inline function substring(startIndex: Int, endIndex: Int = -1): String {

0 commit comments

Comments
 (0)