mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 15:02:01 +00:00
- memset the entire vissprite structure when drawing a psprite because this does not initialize all fields.
This commit is contained in:
parent
f15b051327
commit
f9f5e45824
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue