mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- handle the case that a deleted sprite has inserted its bogus sector reference into the clip list.
We got one report of Blood crashing on this.
This commit is contained in:
parent
bf23d6c3b0
commit
3ad4a869c1
1 changed files with 1 additions and 0 deletions
|
@ -1088,6 +1088,7 @@ void getzrange(const vec3_t *pos, int16_t sectnum,
|
|||
for (bssize_t i=0; i<clipsectnum; i++)
|
||||
{
|
||||
int j;
|
||||
if (clipsectorlist[i] == MAXSECTORS) continue; // we got a deleted sprite in here somewhere. Skip this entry.
|
||||
SectIterator it(clipsectorlist[i]);
|
||||
while ((j = it.NextIndex()) >= 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue