Skip to content

Commit

Permalink
Fixed IF to not look for wrong layers
Browse files Browse the repository at this point in the history
  • Loading branch information
pigmej committed Oct 2, 2024
1 parent 3f6b838 commit 83267c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/partial_quicksync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fn find_restore_points(layer_from: u32, metadata: &str, jump_back: usize) -> Vec

for (index, line) in metadata.trim().lines().enumerate() {
let point = RestorePoint::from_str(line.trim()).expect("parsing restore point");
if point.to > layer_from && target_index.is_none() {
if point.from > layer_from && point.to > layer_from && target_index.is_none() {
target_index = Some(index);
}
all_points.push(point);
Expand Down

0 comments on commit 83267c6

Please sign in to comment.