diff options
-rw-r--r-- | src/emu/uimain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/uimain.c b/src/emu/uimain.c index 1029c722e3c..1df866a3265 100644 --- a/src/emu/uimain.c +++ b/src/emu/uimain.c @@ -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!=NULL && field->first_diplocation() == NULL) + if (field==NULL || field->first_diplocation() == NULL) return; /* add borders */ |