Having this type
ComponentTable :: struct(T: typeid) {
sparse: []int,
dense: []Entity,
data: []T,
count: int,
}
Scene :: struct {
next_id: Entity,
alive: []Entity,
atlas: map[typeid]ComponentTable(typeid),
}
Where s is a Scene, why is this ok s.atlas[type].sparse[r] = 0 but this isn't s.atlas[type].count = 0
Error: Cannot assign to struct field 's.atlas[type].count' in map