summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/cheatopt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/ui/cheatopt.cpp')
-rw-r--r--src/frontend/mame/ui/cheatopt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frontend/mame/ui/cheatopt.cpp b/src/frontend/mame/ui/cheatopt.cpp
index ae6a4e9c508..87b748fb3cc 100644
--- a/src/frontend/mame/ui/cheatopt.cpp
+++ b/src/frontend/mame/ui/cheatopt.cpp
@@ -263,7 +263,7 @@ void ui_menu_autofire::populate()
bool is_first_button = true;
for (ioport_field &field : port.fields())
{
- if ((field.name()) && ((field.type() >= IPT_BUTTON1 && field.type() <= IPT_BUTTON16))) // IPT_BUTTON1 + 15)))
+ if (field.type() >= IPT_BUTTON1 && field.type() <= IPT_BUTTON16)
{
menu_items++;
ioport_field::user_settings settings;