fix for internal ui crash on dips menu (nw)

This commit is contained in:
Miodrag Milanovic 2012-05-31 12:08:15 +00:00
parent 864da6fee5
commit 264b6da738

View File

@ -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 */