diff --git a/Source/Core/Core/HW/EXI/EXI_DeviceAD16.cpp b/Source/Core/Core/HW/EXI/EXI_DeviceAD16.cpp index cc49c7f46c..d14630ba24 100644 --- a/Source/Core/Core/HW/EXI/EXI_DeviceAD16.cpp +++ b/Source/Core/Core/HW/EXI/EXI_DeviceAD16.cpp @@ -8,10 +8,7 @@ #include "Common/ChunkFile.h" #include "Common/CommonTypes.h" -CEXIAD16::CEXIAD16() : m_uPosition(0), m_uCommand(0) -{ - m_uAD16Register.U32 = 0x00; -} +CEXIAD16::CEXIAD16() = default; void CEXIAD16::SetCS(int cs) { diff --git a/Source/Core/Core/HW/EXI/EXI_DeviceAD16.h b/Source/Core/Core/HW/EXI/EXI_DeviceAD16.h index 0dfe0f89b4..240464ae37 100644 --- a/Source/Core/Core/HW/EXI/EXI_DeviceAD16.h +++ b/Source/Core/Core/HW/EXI/EXI_DeviceAD16.h @@ -26,13 +26,13 @@ private: union UAD16Reg { - u32 U32; + u32 U32 = 0; u32 U8[4]; }; // STATE_TO_SAVE - u32 m_uPosition; - u32 m_uCommand; + u32 m_uPosition = 0; + u32 m_uCommand = 0; UAD16Reg m_uAD16Register; void TransferByte(u8& _uByte) override;