This commit is contained in:
Quaternions 2024-07-24 11:58:28 -07:00
parent 9cef23c519
commit 567ce86370
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ impl<R:BinReaderExt> File<R>{
let block_start=self.header.block_location[block_id.get() as usize];
let block_end=self.header.block_location[block_id.get() as usize+1];
self.data.seek(std::io::SeekFrom::Start(block_start)).map_err(Error::Seek)?;
Ok((&mut self.data).take_seek(block_end-block_start))
Ok(self.as_mut().take_seek(block_end-block_start))
}
pub(crate) fn fourcc(&self)->FourCC{
self.header.fourcc

View File

@ -2,7 +2,7 @@ use binrw::BinReaderExt;
mod newtypes;
pub mod file;
mod file;
pub mod map;
pub mod bot;
pub mod demo;