From 7250ef9249dd2e65454d5f39ca4d3999e6d7c9a4 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 2 Jun 2012 16:06:03 +0000 Subject: dipswitch ui fix, my mistake (no whatsnew) --- src/emu/uimain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/emu/uimain.c') 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 */ -- cgit v1.2.3-70-g09d2