From 9b98c4d51229c42c99317872c07d1098c2357651 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Fri, 16 Dec 2016 05:01:49 +0100 Subject: [PATCH] Fix out of bounds bug --- src/r_poly_triangle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_poly_triangle.cpp b/src/r_poly_triangle.cpp index 1edd73c71..46b82f517 100644 --- a/src/r_poly_triangle.cpp +++ b/src/r_poly_triangle.cpp @@ -89,7 +89,7 @@ void PolyTriangleDrawer::draw_arrays(const PolyDrawArgs &drawargs, WorkerThreadD auto llvm = Drawers::Instance(); - PolyDrawFuncPtr drawfuncs[3]; + PolyDrawFuncPtr drawfuncs[4]; int num_drawfuncs = 0; drawfuncs[num_drawfuncs++] = drawargs.subsectorTest ? &ScreenTriangle::SetupSubsector : &ScreenTriangle::SetupNormal;