- replaced more dyn_casts and checks for RUNTIME_CLASS(PClassActor)
It is preferable to use IsDescendantOf wherever possible if we ever want to be able to separate PClass from PType.
This commit is contained in:
parent
5350721ec5
commit
9c9b2ccf6d
13 changed files with 28 additions and 23 deletions
|
|
@ -582,7 +582,7 @@ static FState *CheckState(FScanner &sc, PClass *type)
|
|||
FState *state = NULL;
|
||||
sc.MustGetString();
|
||||
|
||||
PClassActor *info = dyn_cast<PClassActor>(type->ParentClass);
|
||||
PClassActor *info = ValidateActor(type->ParentClass);
|
||||
|
||||
if (info != NULL)
|
||||
{
|
||||
|
|
@ -999,7 +999,7 @@ PClassActor *CreateNewActor(const FScriptPosition &sc, FName typeName, FName par
|
|||
sc.Message(MSG_ERROR, "'%s' inherits from a class with the same name", typeName.GetChars());
|
||||
break;
|
||||
}
|
||||
p = dyn_cast<PClassActor>(p->ParentClass);
|
||||
p = ValidateActor(p->ParentClass);
|
||||
}
|
||||
|
||||
if (parent == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue