Make sure nptfront is explicitly > 0, so we don't alloc a poly for negative number points at all

This commit is contained in:
Monster Iestyn committed 2018-12-14 18:01:18 +00:00
1 parent 4089b6b8e9
commit 02fc845a72
1 file changed
+1 -1
+1 -1
View File
@@ -387,7 +387,7 @@ static void SplitPoly (fdivline_t *bsp, //splitting parametric line
*backpoly = HWR_AllocPoly(2 + nptback);
else
*backpoly = NULL;
if (nptfront)
if (nptfront > 0)
*frontpoly = HWR_AllocPoly(2 + nptfront);
else
*frontpoly = NULL;