From b226eb55a2fa2af1f81038a458f7793fb13cf232 Mon Sep 17 00:00:00 2001 From: AJR Date: Mon, 25 Jun 2018 01:46:33 -0400 Subject: [PATCH] ui/menu.cpp: Well, obviously (nw) --- src/frontend/mame/ui/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;