From 9432f9ec9003c8f62f99f4bc420baa7782a09da6 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 18 Jul 2021 16:56:49 +1000 Subject: [PATCH] - Blood: Add nullptr check for `actor2` in `ProcessTouchObjects()`. * Fixes crash during testing of NHIS. --- source/games/blood/src/actor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/blood/src/actor.cpp b/source/games/blood/src/actor.cpp index a58dc0e6f..66a30d111 100644 --- a/source/games/blood/src/actor.cpp +++ b/source/games/blood/src/actor.cpp @@ -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()))