- fixed some issues with setup parts for ZScript in the wrong place.

This never showed on GZDoom as an error but on Raze which has no actor classes it caused incompletely set up class descriptors.
This commit is contained in:
Christoph Oelckers 2020-06-14 17:22:56 +02:00
commit 75cd00a340
13 changed files with 74 additions and 167 deletions

View file

@ -648,7 +648,7 @@ void ZCCDoomCompiler::InitDefaults()
if (c->Defaults.Size()) Error(c->cls, "%s: Non-actor classes may not have defaults", c->ClassType()->TypeName.GetChars());
if (c->ClassType()->ParentClass)
{
auto ti = static_cast<PClassActor *>(c->ClassType());
auto ti = c->ClassType();
ti->InitializeDefaults();
}
}