Skip to content

Commit

Permalink
- fixed crash when trying to triangulate broken sectors.
Browse files Browse the repository at this point in the history
In these cases it is possible that the wall index may go below 0.
  • Loading branch information
coelckers committed Jun 11, 2021
1 parent d270d75 commit 15635ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/core/sectorgeometry.cpp
Expand Up @@ -241,7 +241,7 @@ bool SectorGeometry::MakeVertices(unsigned int secnum, int plane, const FVector2
int start = 0;
while (done[start] && start < numvertices) start++;
int s = start;
if (start < numvertices)
if (start >= 0 && start < numvertices)
{
while (!done[start])
{
Expand Down

0 comments on commit 15635ec

Please sign in to comment.