]> git.mxchange.org Git - flightgear.git/commitdiff
JSB: "Fixed uninitialized variables; patch by Anders Gidenstam"
authormfranz <mfranz>
Wed, 10 Oct 2007 22:11:14 +0000 (22:11 +0000)
committermfranz <mfranz>
Wed, 10 Oct 2007 22:11:14 +0000 (22:11 +0000)
mf: backporting from JSB/CVS to fix serious gear problem

src/FDM/JSBSim/models/FGLGear.cpp

index b11041c9a4a542b9118705026a0863406c2699eb..b25b95a89aae7ff4e6fcc7692c43a3a6afcb5edd 100644 (file)
@@ -205,6 +205,15 @@ FGLGear::FGLGear(Element* el, FGFDMExec* fdmex, int number) : Exec(fdmex),
   WheelSlip = 0.0;
   TirePressureNorm = 1.0;
 
+  SideWhlVel    = 0.0;
+  RollingWhlVel = 0.0;
+
+  SinWheel = 0.0;
+  CosWheel = 0.0;
+
+  prevSlipIn  = 0.0;
+  prevSlipOut = 0.0;
+
   Debug(0);
 }