feat(component): add default initializers for variation array

This commit is contained in:
fallenoak committed 2025-10-16 10:49:46 -05:00
1 parent cf45484044
commit 113a98c202
1 file changed
+4 -4
+4 -4
View File
@@ -16,14 +16,14 @@ struct st_race {
// The use of "section" here refers to the groups of variations represented in // The use of "section" here refers to the groups of variations represented in
// COMPONENT_VARIATIONS. It does NOT refer to COMPONENT_SECTIONS. // COMPONENT_VARIATIONS. It does NOT refer to COMPONENT_SECTIONS.
struct { struct {
uint32_t variationCount; int32_t variationCount = 0;
st_variation* variationArray; st_variation* variationArray = nullptr;
} sections[NUM_COMPONENT_VARIATIONS]; } sections[NUM_COMPONENT_VARIATIONS];
}; };
struct st_variation { struct st_variation {
uint32_t colorCount; int32_t colorCount = 0;
st_color* colorArray; st_color* colorArray = nullptr;
}; };
#endif #endif