mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-29 15:32:24 +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:
|
case kHitWall:
|
||||||
break;
|
break;
|
||||||
case kHitSprite:
|
case kHitSprite:
|
||||||
if (coll.actor()->hasX())
|
if (coll.actor() && coll.actor()->hasX())
|
||||||
{
|
{
|
||||||
auto actor2 = coll.actor();
|
auto actor2 = coll.actor();
|
||||||
|
|
||||||
|
@ -4302,7 +4302,7 @@ static void checkFloorHit(DBloodActor* actor)
|
||||||
actTouchFloor(actor, coll.hitSector);
|
actTouchFloor(actor, coll.hitSector);
|
||||||
break;
|
break;
|
||||||
case kHitSprite:
|
case kHitSprite:
|
||||||
if (coll.actor()->hasX())
|
if (coll.actor() && coll.actor()->hasX())
|
||||||
{
|
{
|
||||||
auto actor2 = coll.actor();
|
auto actor2 = coll.actor();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue