summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/uimain.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-06-02 16:06:03 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-06-02 16:06:03 +0000
commit7250ef9249dd2e65454d5f39ca4d3999e6d7c9a4 (patch)
tree6e465c5493bbdda1190db60883a21d92f140d910 /src/emu/uimain.c
parent6c837f2c2545264d797f74b8ee7568f5e08a6783 (diff)
dipswitch ui fix, my mistake (no whatsnew)
Diffstat (limited to 'src/emu/uimain.c')
-rw-r--r--src/emu/uimain.c2
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 */