- made TObjPtr as trivial as possible.

Mainly to avoid problems with Raze, but eliminating this constructor lets us catch erroneous local definitions via 'auto', which can cause major problems if left undetected.
This commit is contained in:
Christoph Oelckers 2022-06-06 15:19:31 +02:00
commit d1caf3a471
9 changed files with 45 additions and 39 deletions

View file

@ -315,6 +315,6 @@ void T_AddSpawnedThing(FLevelLocals *Level, AActor * ac)
if (Level->FraggleScriptThinker)
{
auto &SpawnedThings = Level->FraggleScriptThinker->SpawnedThings;
SpawnedThings.Push(GC::ReadBarrier(ac));
SpawnedThings.Push(MakeObjPtr<AActor*>(ac));
}
}