mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-29 04:50:42 +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);
|
else changespritestat(newSprite, STAT_ZOMBIEACTOR);
|
||||||
|
|
||||||
pSprite->shade = sprite[spriteNum].shade;
|
if (RR && spriteNum >= 0)
|
||||||
|
pSprite->shade = sprite[spriteNum].shade;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue