- 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 b03d674a74
commit deef767c5d

View file

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