Change back crc to u16 and set padding to 0.
This commit is contained in:
parent
650078f70f
commit
b45d904f64
@ -191,17 +191,20 @@ static_assert(std::is_trivially_copyable_v<MiiData>, "MiiData must be trivially
|
||||
struct ChecksummedMiiData {
|
||||
private:
|
||||
MiiData mii_data;
|
||||
u32_be crc16;
|
||||
u16 padding;
|
||||
u16_be crc16;
|
||||
|
||||
public:
|
||||
ChecksummedMiiData& operator=(const MiiData& data) {
|
||||
mii_data = data;
|
||||
padding = 0;
|
||||
FixChecksum();
|
||||
return *this;
|
||||
}
|
||||
|
||||
ChecksummedMiiData& operator=(MiiData&& data) {
|
||||
mii_data = std::move(data);
|
||||
padding = 0;
|
||||
FixChecksum();
|
||||
return *this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user