Skip to content

Commit

Permalink
- fixed null pointer access in spritesTouching
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Sep 7, 2021
1 parent ce35142 commit 461ae4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/games/blood/src/nnexts.cpp
Expand Up @@ -8230,6 +8230,7 @@ bool spritesTouching(DBloodActor *actor1, DBloodActor* actor2)
if (hit->hit.type == kHitSprite) hitactor = hit->hit.actor;
else if (hit->florhit.type == kHitSprite) hitactor = hit->florhit.actor;
else if (hit->ceilhit.type == kHitSprite) hitactor = hit->ceilhit.actor;
else return false;
return hitactor->hasX() && hitactor == actor2;
}

Expand Down

0 comments on commit 461ae4b

Please sign in to comment.