mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
SW: Avoid an OOB in GetUpperLowerSector
git-svn-id: https://svn.eduke32.com/eduke32@8302 1a8010ca-5511-0410-912e-c29ae57300e0 # Conflicts: # source/sw/src/brooms.cpp
This commit is contained in:
parent
31f8cb4def
commit
383ecda2b2
1 changed files with 2 additions and 1 deletions
|
@ -830,9 +830,10 @@ GetUpperLowerSector(short match, int x, int y, short *upper, short *lower)
|
||||||
if (!found)
|
if (!found)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
sectorlist[sln] = i;
|
|
||||||
if (sln < (int)SIZ(GlobStackSect))
|
if (sln < (int)SIZ(GlobStackSect))
|
||||||
GlobStackSect[sln] = i;
|
GlobStackSect[sln] = i;
|
||||||
|
if (sln < (int)SIZ(sectorlist))
|
||||||
|
sectorlist[sln] = i;
|
||||||
sln++;
|
sln++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue