Updated substitution logic to only replace pointers if safe

This commit is contained in:
Boondorl 2024-03-13 15:18:30 -04:00 committed by Rachael Alexanderson
commit 442ac3f78b
7 changed files with 67 additions and 55 deletions

View file

@ -1711,7 +1711,7 @@ int FLevelLocals::FinishTravel ()
pawn->flags2 &= ~MF2_BLASTED;
if (oldpawn != nullptr)
{
PlayerPointerSubstitution (oldpawn, pawn);
PlayerPointerSubstitution (oldpawn, pawn, true);
oldpawn->Destroy();
}
if (pawndup != NULL)