Skip to content

global StaticArray id populated with 0 #1454

Closed
@battlelinegames

Description

@battlelinegames

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];
}

This is what the header looks like when it has an id of 0:
Int32Array

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions