diff --git a/crates/lox-distributor/src/resource_parser.rs b/crates/lox-distributor/src/resource_parser.rs index 7d01aa1..136578a 100644 --- a/crates/lox-distributor/src/resource_parser.rs +++ b/crates/lox-distributor/src/resource_parser.rs @@ -76,8 +76,9 @@ pub fn parse_into_buckets( count += 1; } else { buckets.push(bucket); - count = 0; bucket = [BridgeLine::default(); MAX_BRIDGES_PER_BUCKET]; + bucket[0] = bridgeline; + count = 1; } } // Handle the extra buckets that were not allocated already