mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-18 18:01:33 +00:00
- don’t crash on sector-less walls.
This commit is contained in:
parent
f5579caa8f
commit
c4bfee070e
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ void CreateVertexMap()
|
|||
if (processed[w]) return; // broken wall setups can trigger this.
|
||||
walls.Push(w);
|
||||
processed.Set(w);
|
||||
if (!sectors.Contains(wal->sector))
|
||||
if ((unsigned)wal->sector < sector.Size() && !sectors.Contains(wal->sector))
|
||||
{
|
||||
sectors.Push(wal->sector);
|
||||
countpersector[wal->sector]++;
|
||||
|
|
Loading…
Reference in a new issue