mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-23 21:17:45 +00:00
Oops, remove accidental unwrap commit in Texture
This commit is contained in:
parent
7aeb217e2e
commit
79e6f20d86
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ impl Texture {
|
|||
/// Reads an existing TEX file
|
||||
pub fn from_existing(buffer: ByteSpan) -> Option<Texture> {
|
||||
let mut cursor = Cursor::new(buffer);
|
||||
let header = TexHeader::read(&mut cursor).unwrap();
|
||||
let header = TexHeader::read(&mut cursor).ok()?;
|
||||
|
||||
cursor
|
||||
.seek(SeekFrom::Start(std::mem::size_of::<TexHeader>() as u64))
|
||||
|
|
Loading…
Add table
Reference in a new issue