diff --git a/source/blood/src/actor.cpp b/source/blood/src/actor.cpp index a90a22b14..84417f8c1 100644 --- a/source/blood/src/actor.cpp +++ b/source/blood/src/actor.cpp @@ -6059,7 +6059,7 @@ void actProcessSprites(void) GibSprite(pSprite, GIBTYPE_17, NULL, NULL); actPostSprite(pSprite->index, 1024); } - if (pTarget->extra && xsprite[pTarget->extra].health > 0) + if (pTarget->extra > 0 && xsprite[pTarget->extra].health > 0) { int x = pTarget->x+mulscale30r(Cos(pXSprite->goalAng+pTarget->ang), pTarget->clipdist*2); int y = pTarget->y+mulscale30r(Sin(pXSprite->goalAng+pTarget->ang), pTarget->clipdist*2); diff --git a/source/blood/src/view.cpp b/source/blood/src/view.cpp index 5eb0301c8..5b6d69e21 100644 --- a/source/blood/src/view.cpp +++ b/source/blood/src/view.cpp @@ -2174,7 +2174,7 @@ void viewProcessSprites(int32_t cX, int32_t cY, int32_t cZ, int32_t cA, int32_t sectortype *pSector = §or[pTSprite->sectnum]; XSECTOR *pXSector; int nShade = pTSprite->shade; - if (pSector->extra) + if (pSector->extra > 0) { pXSector = &xsector[pSector->extra]; }