- 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:
Christoph Oelckers 2021-04-23 20:11:46 +02:00
parent bf23d6c3b0
commit 3ad4a869c1

View file

@ -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)
{