Skip to content

Commit

Permalink
add missing null check
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Oct 18, 2023
1 parent b3f74c3 commit 253a629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/games/blood/src/actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1900,7 +1900,7 @@ static void actImpactMissile(DBloodActor* missileActor, int hitCode)

DUDEINFO* pDudeInfo = nullptr;
bool pIsThing = false;
int nThingDamage = actorHit->dmgControl[kDamageBurn];
int nThingDamage = actorHit? actorHit->dmgControl[kDamageBurn] : 0;

if (hitCode == 3 && actorHit)
{
Expand Down

0 comments on commit 253a629

Please sign in to comment.