Fix openarray toGodot

This commit is contained in:
Ruslan Mustakov 2017-07-27 11:36:35 +07:00
commit 0c5e2e463c

View file

@ -456,8 +456,7 @@ proc godotVariantType*(T: typedesc[array]): VariantType =
VariantType.Array
proc toGodot*[T](s: openarray[T]): Variant =
var arr: Array
initArray(arr)
var arr = initArray()
mixin toGodot
for item in s:
arr.add(toGodot(item))