mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
- 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:
parent
d270d75d74
commit
15635ec7c8
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue