diff options
Diffstat (limited to 'src/frontend/mame/ui/menu.cpp')
-rw-r--r-- | src/frontend/mame/ui/menu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frontend/mame/ui/menu.cpp b/src/frontend/mame/ui/menu.cpp index e3abdc0e0a5..3a0eff12c5e 100644 --- a/src/frontend/mame/ui/menu.cpp +++ b/src/frontend/mame/ui/menu.cpp @@ -412,7 +412,7 @@ void menu::item_append(std::string &&text, std::string &&subtext, uint32_t flags void menu::item_append_on_off(const std::string &text, bool state, uint32_t flags, void *ref, menu_item_type type) { - if (state & FLAG_DISABLE) + if (flags & FLAG_DISABLE) ref = nullptr; else flags |= state ? FLAG_LEFT_ARROW : FLAG_RIGHT_ARROW; |