diff --git a/Source/Core/Common/Debug/MemoryPatches.cpp b/Source/Core/Common/Debug/MemoryPatches.cpp index aaded7343d..38f96863d0 100644 --- a/Source/Core/Common/Debug/MemoryPatches.cpp +++ b/Source/Core/Common/Debug/MemoryPatches.cpp @@ -11,7 +11,7 @@ namespace Common::Debug { MemoryPatch::MemoryPatch(u32 address_, std::vector value_) - : address(address_), value(std::move(value_)), is_enabled(State::Enabled) + : address(address_), value(std::move(value_)) { } diff --git a/Source/Core/Common/Debug/MemoryPatches.h b/Source/Core/Common/Debug/MemoryPatches.h index cee814c6b5..6307833abe 100644 --- a/Source/Core/Common/Debug/MemoryPatches.h +++ b/Source/Core/Common/Debug/MemoryPatches.h @@ -20,12 +20,12 @@ struct MemoryPatch Disabled }; - u32 address; - std::vector value; - State is_enabled; - MemoryPatch(u32 address, std::vector value); MemoryPatch(u32 address, u32 value); + + u32 address; + std::vector value; + State is_enabled = State::Enabled; }; class MemoryPatches