From 04969f94b69710f6ca88642d8c930947f2094eb0 Mon Sep 17 00:00:00 2001 From: Roland Munsil Date: Mon, 24 Sep 2018 21:34:48 -0500 Subject: [PATCH] Fix some Cheat Manager comparisons being wrong --- Source/Core/DolphinQt/CheatsManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinQt/CheatsManager.cpp b/Source/Core/DolphinQt/CheatsManager.cpp index 3fbdbd4076..6f4c586f27 100644 --- a/Source/Core/DolphinQt/CheatsManager.cpp +++ b/Source/Core/DolphinQt/CheatsManager.cpp @@ -397,11 +397,11 @@ static bool Compare(T mem_value, T value, CompareType op) case CompareType::Less: return mem_value < value; case CompareType::LessEqual: - return mem_value <= mem_value; + return mem_value <= value; case CompareType::More: - return value > mem_value; + return mem_value > value; case CompareType::MoreEqual: - return value >= mem_value; + return mem_value >= value; default: return false; }