- took InitializeDefaults out of PClass and moved it to PClassActor.

Like so many other parts, this created a hard dependency of the low level code on very invasive game content.
This commit is contained in:
Christoph Oelckers 2020-04-11 19:25:32 +02:00
commit f02c5c0a56
8 changed files with 120 additions and 120 deletions

View file

@ -474,10 +474,11 @@ void LoadActors()
I_Error("%d errors while parsing DECORATE scripts", FScriptPosition::ErrorCounter);
}
FScriptPosition::ResetErrorCounter();
for (int i = PClassActor::AllActorClasses.Size() - 1; i >= 0; i--)
// AllActorClasses hasn'T been set up yet.
for (int i = PClass::AllClasses.Size() - 1; i >= 0; i--)
{
auto ti = PClassActor::AllActorClasses[i];
auto ti = (PClassActor*)PClass::AllClasses[i];
if (!ti->IsDescendantOf(RUNTIME_CLASS(AActor))) continue;
if (ti->Size == TentativeClass)
{
if (ti->bOptional)