Fixes bug in parse_into_buckets that skips adding every 4th bridgeline

This commit is contained in:
onyinyang 2024-01-11 19:24:55 -05:00
parent 6afc557ad5
commit 596901b174
1 changed files with 2 additions and 1 deletions

View File

@ -76,8 +76,9 @@ pub fn parse_into_buckets(
count += 1; count += 1;
} else { } else {
buckets.push(bucket); buckets.push(bucket);
count = 0;
bucket = [BridgeLine::default(); MAX_BRIDGES_PER_BUCKET]; bucket = [BridgeLine::default(); MAX_BRIDGES_PER_BUCKET];
bucket[0] = bridgeline;
count = 1;
} }
} }
// Handle the extra buckets that were not allocated already // Handle the extra buckets that were not allocated already