Closed
Description
When I declare a global StaticArray variable, the id integer inside of the array's header is set to 0.
var return_array: StaticArray<f32> = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
export function getStaticArray(): StaticArray<f32> {
return return_array;
}
The above code returns an array with a value of 0 in the id. The code below has the id integer set to 3:
var return_array: StaticArray<f32> = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
export function getStaticArray(): StaticArray<f32> {
return [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
}