From 113a98c202883daffa9366dceeff382ccc697f3c Mon Sep 17 00:00:00 2001 From: fallenoak Date: Thu, 16 Oct 2025 10:49:46 -0500 Subject: [PATCH] feat(component): add default initializers for variation array --- src/component/Util.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/component/Util.hpp b/src/component/Util.hpp index c93f8fb..0016b82 100644 --- a/src/component/Util.hpp +++ b/src/component/Util.hpp @@ -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