Skip to content

Commit eff1738

Browse files
authored
Fix array typing (#1803)
1 parent 56bd5fa commit eff1738

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/autoload/State.gd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,9 @@ func _move_selected(down: bool) -> void:
645645
if start in inner_selections:
646646
selected.append(i)
647647

648-
var order: Array[int] = range(pathdata.subpath_start_indices.size())
648+
# FIXME range() should really be returning Array[int]. #72762
649+
var order: Array[int]
650+
order.assign(range(pathdata.subpath_start_indices.size()))
649651
if down:
650652
for i in range(selected.size() - 1, -1, -1):
651653
var pos := order.find(selected[i])

0 commit comments

Comments
 (0)