diff --git a/imagery/i.atcorr/main.cpp b/imagery/i.atcorr/main.cpp index 475c1358ca2..98a69f330fa 100644 --- a/imagery/i.atcorr/main.cpp +++ b/imagery/i.atcorr/main.cpp @@ -204,12 +204,12 @@ class TICache { private: struct RBitem set_alt_vis(double alt, double vis) { - struct RBitem rbitem = {0, 0, {0, 0.0, {{0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}}, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}}; + struct RBitem rbitem = { /* alt and vis must be in meters */ - rbitem.alt = (alt < 0 ? (int)(alt - 0.5) : (int)(alt + 0.5)); - rbitem.vis = (int)(vis + 0.5); - + .alt = (alt < 0 ? (int)(alt - 0.5) : (int)(alt + 0.5)), + .vis = (int)(vis + 0.5) + }; return rbitem; }