fix 1-indexed block id
This commit is contained in:
parent
083a735d85
commit
43ee18a2ca
@ -285,7 +285,7 @@ impl std::error::Error for Error{}
|
||||
#[binrw]
|
||||
#[brw(little)]
|
||||
#[derive(Debug,Clone,Copy)]
|
||||
pub struct BlockId(u32);
|
||||
pub struct BlockId(#[br(map=|i:u32|i-1)]u32);
|
||||
|
||||
#[binrw]
|
||||
#[brw(little)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user