From fc92430551c5a5f7787db62bc42d5192610859b4 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 28 Feb 2016 16:50:38 +0100 Subject: [PATCH] Fix an off-by-one in the indexing. --- simple.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simple.lua b/simple.lua index 10c9beb..1e895d5 100644 --- a/simple.lua +++ b/simple.lua @@ -89,9 +89,9 @@ end -- The color is in linear light (not sRGB gamma). function set_wb(channel, red, green, blue) if channel == 2 then - input_neutral_color[0] = { red, green, blue } - elseif channel == 3 then input_neutral_color[1] = { red, green, blue } + elseif channel == 3 then + input_neutral_color[2] = { red, green, blue } end end -- 2.39.2