mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 17:58:37 +12: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)
|
switch (button_press)
|
||||||
{
|
{
|
||||||
case pad_button::cross:
|
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())
|
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]);
|
return_code = static_cast<s32>(m_entry_ids[index]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue