Merge pull request #7429 from RolandMunsil/master
Fix two bugs in Cheat Manager
This commit is contained in:
commit
bcb5a6f0ed
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue