diff options
Diffstat (limited to 'src/unityfs.rs')
-rw-r--r-- | src/unityfs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unityfs.rs b/src/unityfs.rs index d3eb81f..0f3cab6 100644 --- a/src/unityfs.rs +++ b/src/unityfs.rs @@ -230,11 +230,11 @@ impl<T: Seek + Read> Seek for BlocksReader<T> { let block_off = pos - decomp_off; debug!("target is block={i} offset={block_off}"); - self.inner.seek(SeekFrom::Start(comp_off))?; if self.nblock_index == i + 1 { debug!("intra-block seek") } else { debug!("seek comp to {comp_off}"); + self.inner.seek(SeekFrom::Start(comp_off))?; self.nblock_index = i; self.load_next_block()?; } |