From: ehofman Date: Thu, 2 Feb 2006 09:40:27 +0000 (+0000) Subject: Prevent a warning. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8141bfe2dadcbd73caad3e3ee4498affc8b7fd4c;p=flightgear.git Prevent a warning. --- diff --git a/src/Instrumentation/dclgps.cxx b/src/Instrumentation/dclgps.cxx index d4084136f..8d4cb0265 100644 --- a/src/Instrumentation/dclgps.cxx +++ b/src/Instrumentation/dclgps.cxx @@ -932,7 +932,7 @@ void DCLGPS::OBSPressed() { _obsMode = !_obsMode; if(_obsMode) { if(!_activeWaypoint.id.empty()) { - _obsHeading = _dtkMag; + _obsHeading = static_cast(_dtkMag); } // TODO - the _fromWaypoint location will change as the OBS heading changes. // Might need to store the OBS initiation position somewhere in case it is needed again.