Qt/CheatsManager: Fix segfault in GenerateARCode
This commit is contained in:
parent
98c7b232c4
commit
3cee7d599b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue