mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-03 18:54:05 +02:00
dont panic when parsing invalid displacement neighbours
This commit is contained in:
parent
148c6c59bd
commit
f22ee95214
5 changed files with 39 additions and 18 deletions
|
|
@ -122,7 +122,10 @@ impl<'a> Handle<'a, Leaf> {
|
|||
|
||||
impl<'a> Handle<'a, TextureInfo> {
|
||||
pub fn texture_data(&self) -> Handle<'a, TextureData> {
|
||||
Handle::new(self.bsp, &self.bsp.textures_data[self.data.texture_data_index as usize])
|
||||
Handle::new(
|
||||
self.bsp,
|
||||
&self.bsp.textures_data[self.data.texture_data_index as usize],
|
||||
)
|
||||
}
|
||||
pub fn name(&self) -> &'a str {
|
||||
self.texture_data().name()
|
||||
|
|
@ -139,4 +142,4 @@ impl<'a> Handle<'a, TextureData> {
|
|||
part
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue