mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
user-overlays: add sanity check for enter button
This commit is contained in:
parent
3c37036f7a
commit
035a187c42
1 changed files with 3 additions and 0 deletions
|
@ -87,6 +87,9 @@ namespace rsx
|
|||
switch (button_press)
|
||||
{
|
||||
case pad_button::cross:
|
||||
if (m_list->m_items.empty())
|
||||
break;
|
||||
|
||||
if (const usz index = static_cast<usz>(m_list->get_selected_index()); index < m_entry_ids.size())
|
||||
{
|
||||
return_code = static_cast<s32>(m_entry_ids[index]);
|
||||
|
|
Loading…
Add table
Reference in a new issue