- Blood: Add missing actorHit nullptr test in actImpactMissile().

This commit is contained in:
Mitchell Richters 2022-01-01 11:38:30 +11:00
parent 87cace6e6c
commit dcd006d34b

View file

@ -4083,7 +4083,7 @@ static void actImpactMissile(DBloodActor* missileActor, int hitCode)
}
#ifdef NOONE_EXTENSIONS
if (gModernMap && actorHit->hasX() && actorHit->xspr.state != actorHit->xspr.restState && actorHit->xspr.Impact)
if (gModernMap && actorHit && actorHit->hasX() && actorHit->xspr.state != actorHit->xspr.restState && actorHit->xspr.Impact)
trTriggerSprite(actorHit, kCmdSpriteImpact);
#endif
missileActor->spr.cstat &= ~CSTAT_SPRITE_BLOCK_ALL;