From 86cdcd1afbd4e4ccf2d42b1a80a16884afc58a19 Mon Sep 17 00:00:00 2001 From: Steven Cherry Date: Thu, 18 Jul 2013 20:42:02 -0500 Subject: [PATCH] Fix other NULL statements --- Core/CwCheat.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/CwCheat.cpp b/Core/CwCheat.cpp index 9b9afe264d..af0effc425 100644 --- a/Core/CwCheat.cpp +++ b/Core/CwCheat.cpp @@ -290,7 +290,7 @@ void CWCheatEngine::Run() { } case 0x4: // 32-bit patch code code = GetNextCode(); - if (code[0] != 0) { + if (true) { int data = code[0]; int dataAdd = code[1]; @@ -307,7 +307,7 @@ void CWCheatEngine::Run() { break; case 0x5: // Memcpy command code = GetNextCode(); - if (code[0] != 0) { + if (true) { int destAddr = code[0]; if (Memory::IsValidAddress(addr) && Memory::IsValidAddress(destAddr)) { Memory::Memcpy(destAddr, Memory::GetPointer(addr), arg); @@ -316,7 +316,7 @@ void CWCheatEngine::Run() { break; case 0x6: // Pointer commands code = GetNextCode(); - if (code[0] != 0) { + if (true) { int arg2 = code[0]; int offset = code[1]; int baseOffset = (arg2 >> 20) * 4;