summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/uimain.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-06-05 18:35:57 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-06-05 18:35:57 +0000
commit7e28dd356bb8495851faa7b8b03989b0e0be22b3 (patch)
tree84fa22fe7bb5a322ef4192716219b255b9b73205 /src/emu/uimain.c
parentdbe8b7f762f85452f2caf5dbf510d45df1a1979d (diff)
ups (nw)
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 248f1eea4d9..1caff7311f9 100644
--- a/src/emu/uimain.c
+++ b/src/emu/uimain.c
@@ -1177,7 +1177,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 */