Skip to content

Commit

Permalink
fix an edge case bug when chunking dds files
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan-rsm-McKenzie committed Feb 13, 2024
1 parent 3190317 commit eec81f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/fo4/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,12 @@ impl<'bytes> File<'bytes> {
size = image.slice_pitch;
}

if v.len() == 3 {
break;
}

stop += 1;
if stop == images_len.get() || v.len() == 3 {
if stop == images_len.get() {
break;
}
}
Expand Down

0 comments on commit eec81f1

Please sign in to comment.