summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/uimain.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-05-31 12:08:15 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-05-31 12:08:15 +0000
commit264b6da73842533b80a7292654ef17aba0efaaa5 (patch)
treefe1ce10184fd4a98e51c8ac64f47f98475615d1b /src/emu/uimain.c
parent864da6fee54ecef07f293d489a59cdf0c8420065 (diff)
fix for internal ui crash on dips menu (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 5460c61fdea..1029c722e3c 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->first_diplocation() == NULL)
+ if (field!=NULL && field->first_diplocation() == NULL)
return;
/* add borders */