mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-30 07:41:22 +00:00
Fixed menu class replacement
https://forum.zdoom.org/viewtopic.php?t=56824
This commit is contained in:
parent
f8ba5c7b1f
commit
7a29128f6b
1 changed files with 1 additions and 1 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…
Reference in a new issue