From: Steinar H. Gunderson Date: Sun, 28 Feb 2016 15:50:38 +0000 (+0100) Subject: Fix an off-by-one in the indexing. X-Git-Tag: 1.2.0~50 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=fc92430551c5a5f7787db62bc42d5192610859b4 Fix an off-by-one in the indexing. --- 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