feat(component): add default initializers for variation array

This commit is contained in:
fallenoak 2025-10-16 10:49:46 -05:00
parent cf45484044
commit 113a98c202
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -16,14 +16,14 @@ struct st_race {
// The use of "section" here refers to the groups of variations represented in
// COMPONENT_VARIATIONS. It does NOT refer to COMPONENT_SECTIONS.
struct {
uint32_t variationCount;
st_variation* variationArray;
int32_t variationCount = 0;
st_variation* variationArray = nullptr;
} sections[NUM_COMPONENT_VARIATIONS];
};
struct st_variation {
uint32_t colorCount;
st_color* colorArray;
int32_t colorCount = 0;
st_color* colorArray = nullptr;
};
#endif