diff --git a/Source/Core/Common/Debug/MemoryPatches.cpp b/Source/Core/Common/Debug/MemoryPatches.cpp index db7a40c58b..38f96863d0 100644 --- a/Source/Core/Common/Debug/MemoryPatches.cpp +++ b/Source/Core/Common/Debug/MemoryPatches.cpp @@ -6,11 +6,12 @@ #include #include +#include namespace Common::Debug { MemoryPatch::MemoryPatch(u32 address_, std::vector value_) - : address(address_), value(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