- Blood: Fix some nullptr issues in checkHit() and checkFloorHit().

* Fixes #834.
This commit is contained in:
Mitchell Richters 2023-01-02 15:02:57 +11:00
parent 1265b8aa1b
commit 64c9ad73a7

View file

@ -4229,7 +4229,7 @@ static void checkHit(DBloodActor* actor)
case kHitWall: case kHitWall:
break; break;
case kHitSprite: case kHitSprite:
if (coll.actor()->hasX()) if (coll.actor() && coll.actor()->hasX())
{ {
auto actor2 = coll.actor(); auto actor2 = coll.actor();
@ -4302,7 +4302,7 @@ static void checkFloorHit(DBloodActor* actor)
actTouchFloor(actor, coll.hitSector); actTouchFloor(actor, coll.hitSector);
break; break;
case kHitSprite: case kHitSprite:
if (coll.actor()->hasX()) if (coll.actor() && coll.actor()->hasX())
{ {
auto actor2 = coll.actor(); auto actor2 = coll.actor();