- Blood: Add nullptr check for actor2 in ProcessTouchObjects().

* Fixes crash during testing of NHIS.
This commit is contained in:
Mitchell Richters 2021-07-18 16:56:49 +10:00
parent 52e29d4112
commit 9432f9ec90

View file

@ -4560,7 +4560,7 @@ static void ProcessTouchObjects(DBloodActor* actor)
}
}
if (actor2->hasX())
if (actor2 && actor2->hasX())
{
XSPRITE* pXHSprite = &actor2->x();
if (pXHSprite->Touch && !pXHSprite->isTriggered && (!pXHSprite->DudeLockout || actor->IsPlayerActor()))