mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-18 03:22:35 +00:00
Make sure nptfront is explicitly > 0, so we don't alloc a poly for negative number points at all
This commit is contained in:
parent
acb1e37729
commit
7169b8841a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue