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

This commit is contained in:
LunaMoo committed 2018-07-07 15:45:56 +02:00
1 parent 1f60c85cb6
commit 402033030b
1 file changed
+4 -4
+4 -4
View File
@@ -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;