Commit 4ba390ee authored by Giuseppe Carboni's avatar Giuseppe Carboni Committed by GitHub
Browse files

Fix #433, fixed an issue with a double* that was treated as a normal double (#434)

When assigning a value equal to 0 (when the distance from the zenith is negative), the 0 value was assigned to the pointer, not to the pointer actual value.
parent a4af184a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -132,7 +132,7 @@ void CRefractionCore::getCorrection(double obsZenithDistance,double waveLen, dou

		slaRefro(obsZenithDistance, hm, tdk, m_pressure, m_humidity, wl, phi, tlr, eps, corZenithDistance);
	}
	else corZenithDistance = 0;
	else *corZenithDistance = 0;
}

void CRefractionCore::getMeteoParameters()