From 337bbfc88c358840a43a445567169bad21649ac4 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 12 Jan 2018 10:51:14 +0200 Subject: [PATCH] Custom submenus are no longer removed from altered protected menu https://forum.zdoom.org/viewtopic.php?t=59081 --- src/menu/menudef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menu/menudef.cpp b/src/menu/menudef.cpp index de9c8bc92..39be1eea9 100644 --- a/src/menu/menudef.cpp +++ b/src/menu/menudef.cpp @@ -542,7 +542,7 @@ static bool FindMatchingItem(DMenuItemBase *desc) { // Check for presence of menu auto menu = MenuDescriptors.CheckKey(name); - if (menu == nullptr) return true; + if (menu == nullptr) return false; } else if (grp == 4) {