shithub: choc

Download patch

ref: 40e600b9f4aa8d57ababa3ede02a4e32f56f7c42
parent: f81b5c7b3e7c24364fce681ad3d7ba18119a867b
parent: 8d6223694f0efc8941bf0813a204f19a523d6870
author: Turo Lamminen <turol@users.noreply.github.com>
date: Tue Jan 14 07:42:14 EST 2020

Merge pull request #1240 from turol/fix-uninit

Fix use of uninitialized memory in heretic and hexen

--- a/src/heretic/r_things.c
+++ b/src/heretic/r_things.c
@@ -713,6 +713,7 @@
     vis = &avis;
     vis->mobjflags = 0;
     vis->psprite = true;
+    vis->footclip = 0;
     vis->texturemid =
         (BASEYCENTER << FRACBITS) + FRACUNIT / 2 - (psp->sy -
                                                     spritetopoffset[lump]);
--- 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)