mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- Blood: Fix some nullptr issues in checkHit()
and checkFloorHit()
.
* Fixes #834.
This commit is contained in:
parent
b03d674a74
commit
deef767c5d
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue