1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-07-01 16:47:46 +00:00

Remove a panic when reading certain LGB files

This commit is contained in:
Joshua Goins 2025-06-21 09:45:48 -04:00
parent a9a1b02fd4
commit 7bf8f5016c

View file

@ -707,7 +707,7 @@ impl LayerGroup {
let string_heap = StringHeap::from(start);
objects
.push(InstanceObject::read_le_args(&mut cursor, (&string_heap,)).unwrap());
.push(InstanceObject::read_le_args(&mut cursor, (&string_heap,)).ok()?);
}
}