Skip to content

Commit

Permalink
Merge pull request #7429 from RolandMunsil/master
Browse files Browse the repository at this point in the history
Fix two bugs in Cheat Manager
  • Loading branch information
JosJuice committed Sep 26, 2018
2 parents 97b1a9b + 54bd16e commit bcb5a6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Core/DolphinQt/CheatsManager.cpp
Expand Up @@ -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();

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit bcb5a6f

Please sign in to comment.