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

@ -246,7 +246,7 @@ public:
inline int* IntArray(FName field);
// This is only needed for swapping out PlayerPawns and absolutely nothing else!
virtual size_t PointerSubstitution (DObject *old, DObject *notOld);
virtual size_t PointerSubstitution (DObject *old, DObject *notOld, bool nullOnFail);
PClass *GetClass() const
{