mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-03 10:44:07 +02:00
assert LumpType range
This commit is contained in:
parent
02d22a42f7
commit
a4ac7b5de9
1 changed files with 3 additions and 0 deletions
|
|
@ -90,6 +90,7 @@ impl<'a> BspFile<'a> {
|
|||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
||||
pub enum LumpType {
|
||||
Entities,
|
||||
|
|
@ -157,3 +158,5 @@ pub enum LumpType {
|
|||
PhysLevel,
|
||||
DisplacementMultiBlend,
|
||||
}
|
||||
|
||||
static_assertions::const_assert_eq!(LumpType::DisplacementMultiBlend as usize, 63);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue