[“a1”, “b1”, “c1”]
0
Attempted to push_back a variable of type ‘Array’ into a TypedArray of type ‘PackedStringArray’.
core/variant/array.cpp:285 - Condition “!_p->typed.validate(value, “push_back”)” is true.
Attempted to push_back a variable of type ‘Array’ into a TypedArray of type ‘PackedStringArray’.
core/variant/array.cpp:285 - Condition “!_p->typed.validate(value, “push_back”)” is true.
And then it gives an “Out of bounds get index ‘0’” error.
So it actually prints the array (the first line in print), but then prints 0 for it’s size. And then it crashes when you attempt to get the first element.
It only happens with const.
Am I being dumb or is this a bug?
Hmm… that might has to do something with it, but it does work if you don’t make it a const. I use Array[PackedStringArray] no problem, but this was the first time I tried to make one const.