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)