This commit is contained in:
Rachael Alexanderson 2017-06-10 01:00:38 -04:00
commit a48203ef1d
3 changed files with 16 additions and 7 deletions

View file

@ -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)