Skip to content

Commit f004e54

Browse files
committed
fix(flexible array issue) : fix fam issue in Entity Record struct.
1 parent 19046ff commit f004e54

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/internal/common_data_types.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,8 @@ namespace ECS
8989

9090
struct ArchetypeRecordChunk
9191
{
92-
//ToDo : need to hashout the alignment requirements here when storing in chunk
93-
//size_t maxCount = 0; //max entities ids that can be stored in this chunk
94-
//this maxCount should actually be in Archetype header but since we cannot use only id[] FAM we need here to avoid zero size array
95-
EntityId id[];
96-
92+
93+
EntityId id[1];//hacky
9794

9895
};
9996

0 commit comments

Comments
 (0)