This commit is contained in:
commit
a48203ef1d
3 changed files with 16 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue