]> git.mxchange.org Git - flightgear.git/commitdiff
Prevent a warning.
authorehofman <ehofman>
Thu, 2 Feb 2006 09:40:27 +0000 (09:40 +0000)
committerehofman <ehofman>
Thu, 2 Feb 2006 09:40:27 +0000 (09:40 +0000)
src/Instrumentation/dclgps.cxx

index d4084136f9a318a6359e7c9cc44b4f7efbd6926b..8d4cb0265347a5750c779fc465d27d223c022b83 100644 (file)
@@ -932,7 +932,7 @@ void DCLGPS::OBSPressed() {
        _obsMode = !_obsMode;
        if(_obsMode) {
                if(!_activeWaypoint.id.empty()) {
-                       _obsHeading = _dtkMag;
+                       _obsHeading = static_cast<int>(_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.