shithub: choc

Download patch

ref: 8d6223694f0efc8941bf0813a204f19a523d6870
parent: 592f0115416a1571209d1889dc0e2bff0b96f2a9
author: Turo Lamminen <turol@iki.fi>
date: Mon Jan 13 07:45:03 EST 2020

hexen: Fix uninitialized memory use when calling R_DrawVisSprite from R_DrawPSprite

--- a/src/hexen/r_things.c
+++ b/src/hexen/r_things.c
@@ -727,6 +727,7 @@
     vis->mobjflags = 0;
     vis->class = 0;
     vis->psprite = true;
+    vis->floorclip = 0;
     vis->texturemid = (BASEYCENTER << FRACBITS) + FRACUNIT / 2
         - (psp->sy - spritetopoffset[lump]);
     if (viewheight == SCREENHEIGHT)