mirror of
https://github.com/holub/mame
synced 2025-05-23 22:20:01 +03:00
fix for internal ui crash on dips menu (nw)
This commit is contained in:
parent
864da6fee5
commit
264b6da738
@ -1182,7 +1182,7 @@ void ui_menu_settings_dip_switches::custom_render(void *selectedref, float top,
|
||||
ioport_field *field = (ioport_field *)selectedref;
|
||||
dip_descriptor *dip;
|
||||
|
||||
if (field->first_diplocation() == NULL)
|
||||
if (field!=NULL && field->first_diplocation() == NULL)
|
||||
return;
|
||||
|
||||
/* add borders */
|
||||
|
Loading…
Reference in New Issue
Block a user