From f9f5e458248b2fbb8cb4d7a72650e210903f2cef Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 22 Jan 2017 20:12:44 +0100 Subject: [PATCH] - memset the entire vissprite structure when drawing a psprite because this does not initialize all fields. --- src/r_things.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/r_things.cpp b/src/r_things.cpp index b6b4a472a..730448706 100644 --- a/src/r_things.cpp +++ b/src/r_things.cpp @@ -1361,6 +1361,7 @@ void R_DrawPSprite(DPSprite *pspr, AActor *owner, float bobx, float boby, double // store information in a vissprite vis = &avis[vispspindex]; + memset(vis, 0, sizeof(*vis)); vis->renderflags = owner->renderflags; vis->floorclip = 0; vis->sector = nullptr;