(RMenu XUI) Fix crash at core options when no core options

in core
This commit is contained in:
twinaphex 2013-09-29 21:11:30 +02:00
parent 0798431175
commit 59bfae864e

View File

@ -847,9 +847,8 @@ HRESULT CRetroArchCoreOptions::OnControlNavigate(XUIMessageControlNavigate *pCon
unsigned current_index = XuiListGetCurSel(m_menulist, NULL);
unsigned input = pControlNavigateData->nControlNavigate;
unsigned action = xui_input_to_rgui_action(input);
size_t opts = core_option_size(g_extern.system.core_options);
if ((current_index < opts) && opts > 0)
if (g_extern.system.core_options)
{
bool update_item = false;