Skip to content

Commit

Permalink
- Blood: Add nullptr check for actor2 in ProcessTouchObjects().
Browse files Browse the repository at this point in the history
* Fixes crash during testing of NHIS.
  • Loading branch information
mjr4077au committed Jul 18, 2021
1 parent 52e29d4 commit 9432f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/games/blood/src/actor.cpp
Expand Up @@ -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()))
Expand Down

0 comments on commit 9432f9e

Please sign in to comment.