Permalink
Browse files

Merge pull request #7429 from RolandMunsil/master

Fix two bugs in Cheat Manager
  • Loading branch information...
JosJuice committed Sep 26, 2018
2 parents 97b1a9b + 54bd16e commit bcb5a6f0edb45f1e85440e3fbcc7bad849d48c82
Showing with 4 additions and 4 deletions.
  1. +4 −4 Source/Core/DolphinQt/CheatsManager.cpp
@@ -163,7 +163,7 @@ void CheatsManager::OnWatchContextMenu()
QMenu* menu = new QMenu(this);
menu->addAction(tr("Remove from Watch"), this, [this] {
auto* item = m_match_table->selectedItems()[0];
auto* item = m_watch_table->selectedItems()[0];
int index = item->data(INDEX_ROLE).toInt();
@@ -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;
}

0 comments on commit bcb5a6f

Please sign in to comment.