mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 04:20:45 +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;
|
int start = 0;
|
||||||
while (done[start] && start < numvertices) start++;
|
while (done[start] && start < numvertices) start++;
|
||||||
int s = start;
|
int s = start;
|
||||||
if (start < numvertices)
|
if (start >= 0 && start < numvertices)
|
||||||
{
|
{
|
||||||
while (!done[start])
|
while (!done[start])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue