From 2c34d8aabb138753c32a955086ff5948f43632dc Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 17 Oct 2019 18:48:38 -0400 Subject: dmnt_cheat_vm: Correct register Restore and ClearRegs behavior Previously these were performing the same behavior as the Save and ClearSaved opcode types. --- src/core/memory/dmnt_cheat_vm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/memory/dmnt_cheat_vm.cpp b/src/core/memory/dmnt_cheat_vm.cpp index cc16d15a4..4f4fa5099 100644 --- a/src/core/memory/dmnt_cheat_vm.cpp +++ b/src/core/memory/dmnt_cheat_vm.cpp @@ -1133,8 +1133,8 @@ void DmntCheatVm::Execute(const CheatProcessMetadata& metadata) { case SaveRestoreRegisterOpType::ClearRegs: case SaveRestoreRegisterOpType::Restore: default: - src = registers.data(); - dst = saved_values.data(); + src = saved_values.data(); + dst = registers.data(); break; } for (std::size_t i = 0; i < NumRegisters; i++) { -- cgit v1.2.3