Fix missing first element in index.

This commit is contained in:
2019-10-10 15:22:18 +02:00
parent a172f5ee3f
commit b784e2fed0

View File

@@ -63,14 +63,14 @@ where
for coordinate in distinct {
//trace!("{:?} {:?} {:?} {:?}", dimension, coordinate, cell, count);
cells[cell].push(coordinate);
count += 1;
if count == max_offset {
count = 0;
cell += 1;
cells.push(Vec::with_capacity(max_offset));
}
cells[cell].push(coordinate);
count += 1;
}
info!(