From 7a29128f6b6319687b256f91d6429db7ce37c9b3 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 9 Jun 2017 14:08:26 +0300 Subject: [PATCH] Fixed menu class replacement https://forum.zdoom.org/viewtopic.php?t=56824 --- 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 25cf6b8f8d..37ca2fc0aa 100644 --- a/src/menu/menudef.cpp +++ b/src/menu/menudef.cpp @@ -512,7 +512,7 @@ static void ParseListMenuBody(FScanner &sc, DListMenuDescriptor *desc) static bool CheckCompatible(DMenuDescriptor *newd, DMenuDescriptor *oldd) { if (oldd->mClass == nullptr) return true; - return oldd->mClass == newd->mClass; + return newd->mClass->IsDescendantOf(oldd->mClass); } static bool ReplaceMenu(FScanner &sc, DMenuDescriptor *desc)