diff --git a/r_phase3.c b/r_phase3.c index 1071135f0..944db6060 100644 --- a/r_phase3.c +++ b/r_phase3.c @@ -195,6 +195,8 @@ static void R_PrepPSprite(pspdef_t *psp) state = &states[psp->state]; sprdef = &sprites[state->sprite]; sprframe = &spriteframes[sprdef->firstframe + (state->frame & FF_FRAMEMASK)]; + if (sprframe->lump < 0) + return; sprlump = &spritelumps[sprframe->lump]; lump = sprlump[0]; patch = W_POINTLUMPNUM(lump);