diff --git a/Source/Core/Core/HW/GCMemcard/GCMemcard.cpp b/Source/Core/Core/HW/GCMemcard/GCMemcard.cpp index 33e8630467..a03b11915c 100644 --- a/Source/Core/Core/HW/GCMemcard/GCMemcard.cpp +++ b/Source/Core/Core/HW/GCMemcard/GCMemcard.cpp @@ -1076,7 +1076,7 @@ void GCMemcard::Gcs_SavConvert(DEntry& tempDEntry, int saveType, int length) ByteSwap(&tmp[0], &tmp[1]); memcpy(&tempDEntry.m_block_count, tmp.data(), 2); - ArrayByteSwap((tempDEntry.m_unused_2)); + ByteSwap(&tempDEntry.m_unused_2[0], &tempDEntry.m_unused_2[1]); memcpy(tmp.data(), &tempDEntry.m_comments_address, 4); ByteSwap(&tmp[0], &tmp[1]); diff --git a/Source/Core/Core/HW/GCMemcard/GCMemcard.h b/Source/Core/Core/HW/GCMemcard/GCMemcard.h index f17494e2cf..67152a0999 100644 --- a/Source/Core/Core/HW/GCMemcard/GCMemcard.h +++ b/Source/Core/Core/HW/GCMemcard/GCMemcard.h @@ -220,8 +220,8 @@ struct DEntry Common::BigEndianValue m_first_block; // 0x36 0x02 Block no of first block of file (0 == offset 0) Common::BigEndianValue - m_block_count; // 0x38 0x02 File-length (number of blocks in file) - u8 m_unused_2[2]; // 0x3a 0x02 Reserved/unused (always 0xffff, has no effect) + m_block_count; // 0x38 0x02 File-length (number of blocks in file) + std::array m_unused_2; // 0x3a 0x02 Reserved/unused (always 0xffff, has no effect) Common::BigEndianValue m_comments_address; // 0x3c 0x04 Address of the two comments within the file data // (*3)