mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
Fix potential OOB spriteext[] access when checking SPREXT_NOTMD to determine whether or not to render a sprite's model, if available
git-svn-id: https://svn.eduke32.com/eduke32@7023 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
870f1c4dab
commit
4f590f59c1
1 changed files with 1 additions and 1 deletions
|
@ -4804,7 +4804,7 @@ static void classicDrawSprite(int32_t snum)
|
||||||
|
|
||||||
if ((cstat&48)==48)
|
if ((cstat&48)==48)
|
||||||
vtilenum = tilenum; // if the game wants voxels, it gets voxels
|
vtilenum = tilenum; // if the game wants voxels, it gets voxels
|
||||||
else if (usevoxels && tiletovox[tilenum] != -1 && !(spriteext[spritenum].flags&SPREXT_NOTMD))
|
else if (usevoxels && tiletovox[tilenum] != -1 && spritenum != -1 && !(spriteext[spritenum].flags&SPREXT_NOTMD))
|
||||||
{
|
{
|
||||||
vtilenum = tiletovox[tilenum];
|
vtilenum = tiletovox[tilenum];
|
||||||
cstat |= 48;
|
cstat |= 48;
|
||||||
|
|
Loading…
Reference in a new issue