Qt/CheatsManager: Fix segfault in GenerateARCode

This commit is contained in:
Techjar 2018-07-18 17:56:31 -04:00
parent 98c7b232c4
commit 3cee7d599b
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ void CheatsManager::GenerateARCode()
if (!m_ar_code)
return;
auto* item = m_match_table->selectedItems()[0];
auto* item = m_watch_table->selectedItems()[0];
int index = item->data(INDEX_ROLE).toInt();
ActionReplay::ARCode ar_code;