]> git.mxchange.org Git - simgear.git/commitdiff
Frederic Bouvier:
authorcurt <curt>
Mon, 24 Jan 2005 21:46:12 +0000 (21:46 +0000)
committercurt <curt>
Mon, 24 Jan 2005 21:46:12 +0000 (21:46 +0000)
The Beaver triggered a problem ( uninitialized variable ). Here is the updated
code.

simgear/scene/model/animation.cxx

index e7aa26b3a101255e8da0088a7274d5f45b2cd616..abef683d05f0be4027b8304e478b6598f0e3c1b1 100644 (file)
@@ -407,6 +407,7 @@ SGSpinAnimation::SGSpinAnimation( SGPropertyNode *prop_root,
        }
     }
     //_position_deg(props->getDoubleValue("starting-position-deg", 0)),
+    _position_deg = 0.0;
     _position_deg_min = 0.0;
     _position_deg_max = 0.0;
     SGPropertyNode_ptr position_deg_n = props->getNode( "starting-position-deg" );