- memset the entire vissprite structure when drawing a psprite because this does not initialize all fields.

This commit is contained in:
Christoph Oelckers 2017-01-22 20:12:44 +01:00
parent f15b051327
commit f9f5e45824
1 changed files with 1 additions and 0 deletions

View File

@ -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;