From b0cc472e859227c2044cb57e3da1943d576ddb03 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Fri, 11 May 2018 12:28:10 +0200 Subject: [PATCH] - fixed sloped drawer crash --- src/swrenderer/drawers/r_draw_pal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swrenderer/drawers/r_draw_pal.cpp b/src/swrenderer/drawers/r_draw_pal.cpp index b77a83ec6..68ea09c13 100644 --- a/src/swrenderer/drawers/r_draw_pal.cpp +++ b/src/swrenderer/drawers/r_draw_pal.cpp @@ -2822,7 +2822,7 @@ namespace swrenderer } else { - for (int i = 0; i < width; ++i) + for (int i = 0; i <= width; ++i) { tiltlighting[i] = _colormap; }