mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-25 21:41:55 +00:00
- Blood: Fix some nullptr issues in checkHit()
and checkFloorHit()
.
* Fixes #834.
This commit is contained in:
parent
1265b8aa1b
commit
64c9ad73a7
1 changed files with 2 additions and 2 deletions
|
@ -4229,7 +4229,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();
|
||||
|
||||
|
@ -4302,7 +4302,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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue