(XMB) xmb_get_userdata_from_core - more refactors

This commit is contained in:
twinaphex 2015-03-12 17:09:03 +01:00
parent 7a4213c0d6
commit e6e59c6017

View File

@ -745,10 +745,14 @@ static xmb_node_t* xmb_get_userdata_from_core(xmb_handle_t *xmb, core_info_t *in
if (!info) if (!info)
return NULL; return NULL;
node = (xmb_node_t*)info->userdata; if (!info->userdata)
{
info->userdata = xmb_node_allocate_userdata(xmb, info, i);
if (!info->userdata)
return NULL;
}
if (!node) node = (xmb_node_t*)info->userdata;
return xmb_node_allocate_userdata(xmb, info, i);
return node; return node;
} }