htsky

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

commit a17f6e9031d599d821db39a431200572d7ec0744
parent baa6ed5557c2e3641827012560512d0d258ec02c
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon,  9 Mar 2020 13:15:38 +0100

Fix the htsky_dump_clouds_vtk procedure

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

diff --git a/src/htsky_dump_cloud_vtk.c b/src/htsky_dump_cloud_vtk.c @@ -165,7 +165,7 @@ htsky_dump_cloud_vtk 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",