Fix some Cheat Manager comparisons being wrong

This commit is contained in:
Roland Munsil 2018-09-24 21:34:48 -05:00
parent 8bb6cf2cc4
commit 04969f94b6
1 changed files with 3 additions and 3 deletions

View File

@ -397,11 +397,11 @@ static bool Compare(T mem_value, T value, CompareType op)
case CompareType::Less: case CompareType::Less:
return mem_value < value; return mem_value < value;
case CompareType::LessEqual: case CompareType::LessEqual:
return mem_value <= mem_value; return mem_value <= value;
case CompareType::More: case CompareType::More:
return value > mem_value; return mem_value > value;
case CompareType::MoreEqual: case CompareType::MoreEqual:
return value >= mem_value; return mem_value >= value;
default: default:
return false; return false;
} }