diff --git a/Source/Core/DiscIO/VolumeWad.cpp b/Source/Core/DiscIO/VolumeWad.cpp index 7c089ad10a..e470f10283 100644 --- a/Source/Core/DiscIO/VolumeWad.cpp +++ b/Source/Core/DiscIO/VolumeWad.cpp @@ -22,9 +22,7 @@ namespace DiscIO { -CVolumeWAD::CVolumeWAD(std::unique_ptr reader) - : m_pReader(std::move(reader)), m_offset(0), m_tmd_offset(0), m_opening_bnr_offset(0), - m_hdr_size(0), m_cert_size(0), m_tick_size(0), m_tmd_size(0), m_data_size(0) +CVolumeWAD::CVolumeWAD(std::unique_ptr reader) : m_pReader(std::move(reader)) { // Source: http://wiibrew.org/wiki/WAD_files Read(0x00, 4, (u8*)&m_hdr_size); diff --git a/Source/Core/DiscIO/VolumeWad.h b/Source/Core/DiscIO/VolumeWad.h index 0f28064387..859827abbf 100644 --- a/Source/Core/DiscIO/VolumeWad.h +++ b/Source/Core/DiscIO/VolumeWad.h @@ -49,14 +49,14 @@ public: private: std::unique_ptr m_pReader; - u32 m_offset; - u32 m_tmd_offset; - u32 m_opening_bnr_offset; - u32 m_hdr_size; - u32 m_cert_size; - u32 m_tick_size; - u32 m_tmd_size; - u32 m_data_size; + u32 m_offset = 0; + u32 m_tmd_offset = 0; + u32 m_opening_bnr_offset = 0; + u32 m_hdr_size = 0; + u32 m_cert_size = 0; + u32 m_tick_size = 0; + u32 m_tmd_size = 0; + u32 m_data_size = 0; }; } // namespace