diff --git a/Source/Core/DiscIO/WIABlob.cpp b/Source/Core/DiscIO/WIABlob.cpp index c428c34706..471b830a4a 100644 --- a/Source/Core/DiscIO/WIABlob.cpp +++ b/Source/Core/DiscIO/WIABlob.cpp @@ -1304,7 +1304,7 @@ WIARVZFileReader::ProcessAndCompress(CompressThreadState* state, CompressPa std::vector& data = parameters.data; if (AllSame(data)) - entry.reuse_id = ReuseID{nullptr, data.size(), false, data.front()}; + entry.reuse_id = ReuseID{WiiKey{}, data.size(), false, data.front()}; if constexpr (RVZ) { @@ -1343,7 +1343,7 @@ WIARVZFileReader::ProcessAndCompress(CompressThreadState* state, CompressPa const auto create_reuse_id = [&partition_entry, blocks, blocks_per_chunk](u8 value, bool encrypted, u64 block) { const u64 size = std::min(blocks - block, blocks_per_chunk) * VolumeWii::BLOCK_DATA_SIZE; - return ReuseID{&partition_entry.partition_key, size, encrypted, value}; + return ReuseID{partition_entry.partition_key, size, encrypted, value}; }; const u8* parameters_data_end = parameters.data.data() + parameters.data.size(); diff --git a/Source/Core/DiscIO/WIABlob.h b/Source/Core/DiscIO/WIABlob.h index c30116e044..1714226ab3 100644 --- a/Source/Core/DiscIO/WIABlob.h +++ b/Source/Core/DiscIO/WIABlob.h @@ -257,7 +257,7 @@ private: #undef COMPARE_TIED - const WiiKey* partition_key; + WiiKey partition_key; u64 data_size; bool encrypted; u8 value;