diff --git a/src/hardware/hw_bsp.c b/src/hardware/hw_bsp.c index 30d3b5e55..050317465 100644 --- a/src/hardware/hw_bsp.c +++ b/src/hardware/hw_bsp.c @@ -447,6 +447,10 @@ static poly_t *CutOutSubsecPoly(seg_t *lseg, INT32 segcount, poly_t *poly) vertex_t *v1, *v2; fdivline_t cutseg; // x, y, dx, dy as start of node_t struct + // empty poly? just save us some time then + if (poly->numpts <= 0) + return frontpoly; + // for each seg of the subsector for (; segcount--; lseg++) {