From b45d904f64ad6dc06d403b22d04867fa6fa56b01 Mon Sep 17 00:00:00 2001 From: PabloMK7 Date: Sun, 30 Jul 2023 13:44:19 +0200 Subject: [PATCH] Change back crc to u16 and set padding to 0. --- src/core/hle/mii.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/hle/mii.h b/src/core/hle/mii.h index b647eb8908..bd5784131b 100644 --- a/src/core/hle/mii.h +++ b/src/core/hle/mii.h @@ -191,17 +191,20 @@ static_assert(std::is_trivially_copyable_v, "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; }