Skip to content

Commit

Permalink
Fix other NULL statements
Browse files Browse the repository at this point in the history
  • Loading branch information
makotech222 committed Jul 19, 2013
1 parent 5e1e844 commit 86cdcd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Core/CwCheat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand All @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit 86cdcd1

Please sign in to comment.