mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
Rednukem: Limit sprite shade change to Redneck Rampage games, and add guard for invalid array access. Fixes ASAN error.
This commit is contained in:
parent
19ab05655b
commit
8f8f033956
1 changed files with 2 additions and 1 deletions
|
@ -3181,7 +3181,8 @@ rr_badguy:
|
|||
}
|
||||
else changespritestat(newSprite, STAT_ZOMBIEACTOR);
|
||||
|
||||
pSprite->shade = sprite[spriteNum].shade;
|
||||
if (RR && spriteNum >= 0)
|
||||
pSprite->shade = sprite[spriteNum].shade;
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue