- fixed crash when trying to triangulate broken sectors.

In these cases it is possible that the wall index may go below 0.
This commit is contained in:
Christoph Oelckers 2021-06-11 23:18:46 +02:00
parent d270d75d74
commit 15635ec7c8

View file

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