1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-20 03:37:47 +00:00

Don't call unwrap() in writing CharDat files

This commit is contained in:
Joshua Goins 2024-04-16 21:28:33 -04:00
parent aa62b70498
commit e5bbde95fd

View file

@ -216,7 +216,7 @@ impl CharacterData {
let cursor = Cursor::new(&mut buffer);
let mut writer = BufWriter::new(cursor);
self.write_le(&mut writer).unwrap();
self.write_le(&mut writer).ok()?;
}
Some(buffer)