mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- Apply fix from EDuke32 commit 7225643e.
Fix undefined behavior/potential OOB access in ST_21_FLOOR_DOOR. g_AnimateGoal does not take a sector number, it takes an animation index, and caps at 1024, not 4096.
This commit is contained in:
parent
8e31c34b06
commit
eb2e77fb75
1 changed files with 1 additions and 1 deletions
|
@ -753,7 +753,7 @@ static void handle_st21(int sn, DDukeActor* actor)
|
|||
int j;
|
||||
if (i >= 0)
|
||||
{
|
||||
if (animategoal[sn] == sptr->ceilingz)
|
||||
if (animategoal[i] == sptr->ceilingz)
|
||||
animategoal[i] = sector[nextsectorneighborz(sn, sptr->ceilingz, 1, 1)].floorz;
|
||||
else animategoal[i] = sptr->ceilingz;
|
||||
j = animategoal[i];
|
||||
|
|
Loading…
Reference in a new issue