htsky

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

commit c539a06fcae921bc3b3555e29d20490498e1bd60
parent 28e3bb4fe62e3c6b5cf9dbb7d9fe652e7c00daf3
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 24 Jan 2020 16:03:58 +0100

Fix the htsky_ref_put function

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

diff --git a/src/htsky.c b/src/htsky.c @@ -304,7 +304,7 @@ htsky_ref_get(struct htsky* sky) res_T htsky_ref_put(struct htsky* sky) { - if(sky) return RES_BAD_ARG; + if(!sky) return RES_BAD_ARG; ref_put(&sky->ref, release_sky); return RES_OK; }