mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
Prevent invalid array index in polymost_spriteIsModelOrVoxel()
# Conflicts: # source/build/src/polymost.cpp
This commit is contained in:
parent
73a56f76af
commit
19ab05655b
1 changed files with 1 additions and 1 deletions
|
@ -340,7 +340,7 @@ int32_t polymost_spriteHasTranslucency(tspritetype const * const tspr)
|
|||
|
||||
int32_t polymost_spriteIsModelOrVoxel(tspritetype const * const tspr)
|
||||
{
|
||||
if (spriteext[tspr->owner].flags&SPREXT_NOTMD)
|
||||
if ((unsigned)tspr->owner < MAXSPRITES && spriteext[tspr->owner].flags&SPREXT_NOTMD)
|
||||
return false;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue