Permalink
Browse files

Just a quick fix for a typo made in last big rewrite of cheat engine.

  • Loading branch information...
LunaMoo committed Jul 7, 2018
1 parent 1f60c85 commit 402033030b2e411962284079bae3a38e57be21db
Showing with 4 additions and 4 deletions.
  1. +4 −4 Core/CwCheat.cpp
View
@@ -870,25 +870,25 @@ void CWCheatEngine::ExecuteOp(const CheatOperation &op, const CheatCode &cheat,
break;
case CheatOp::IfAddrEqual:
if (!TestIf(op, [](int a, int b) { return a == b; })) {
if (!TestIfAddr(op, [](int a, int b) { return a == b; })) {
i += (size_t)op.ifAddrTypes.skip;
}
break;
case CheatOp::IfAddrNotEqual:
if (!TestIf(op, [](int a, int b) { return a != b; })) {
if (!TestIfAddr(op, [](int a, int b) { return a != b; })) {
i += (size_t)op.ifAddrTypes.skip;
}
break;
case CheatOp::IfAddrLess:
if (!TestIf(op, [](int a, int b) { return a < b; })) {
if (!TestIfAddr(op, [](int a, int b) { return a < b; })) {
i += (size_t)op.ifAddrTypes.skip;
}
break;
case CheatOp::IfAddrGreater:
if (!TestIf(op, [](int a, int b) { return a > b; })) {
if (!TestIfAddr(op, [](int a, int b) { return a > b; })) {
i += (size_t)op.ifAddrTypes.skip;
}
break;

0 comments on commit 4020330

Please sign in to comment.