Skip to content

Commit

Permalink
- don’t crash on sector-less walls.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Apr 19, 2022
1 parent f5579ca commit c4bfee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/core/rendering/hw_vertexmap.cpp
Expand Up @@ -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]++;
Expand Down

0 comments on commit c4bfee0

Please sign in to comment.