htsky

Load and structure a vertically stratified atmosphere
git clone git://git.meso-star.fr/htsky.git
Log | Files | Refs | README | LICENSE

commit d2dca39eecce7f65cb52cc46029bf179991a92fb
parent c539a06fcae921bc3b3555e29d20490498e1bd60
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 24 Jan 2020 16:12:33 +0100

Fix a wrong pre-condition in the htsky_trace_ray function

Diffstat:
Msrc/htsky_svx.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/htsky_svx.c b/src/htsky_svx.c @@ -317,7 +317,7 @@ htsky_trace_ray goto error; } - if(iband >= sky->sw_bands_range[0] && iband <= sky->sw_bands_range[1]) { + if(iband < sky->sw_bands_range[0] || iband > sky->sw_bands_range[1]) { log_err(sky, "%s: invalid spectral band index `%lu'. " "Valid short wave spectral bands lie in [%lu, %lu]\n",