mirror of
https://github.com/redstrate/Physis.git
synced 2025-07-01 16:47:46 +00:00
Add temporary workaround for writing TerritoryType
Of their packed boolean columns has 3 extra bytes at the end... for some reason. Just like the other test case, I added a temporary workaround for it.
This commit is contained in:
parent
b7cd6c6c7b
commit
70ebe7d03d
1 changed files with 8 additions and 0 deletions
|
@ -174,6 +174,14 @@ pub fn write_rows(rows: &Vec<ExcelRow>, exh: &EXH) -> BinResult<()> {
|
|||
{
|
||||
0u32.write_le(writer).unwrap();
|
||||
}
|
||||
|
||||
// TODO: temporary workaround until i can figure out why this *specific* packed boolean column in TerritoryType has three extra bytes at the end
|
||||
if definition.offset == 60
|
||||
&& definition.data_type == ColumnDataType::PackedBool0
|
||||
&& column_definitions.len() == 44
|
||||
{
|
||||
[0u8; 3].write_le(writer).unwrap();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue