]> git.mxchange.org Git - flightgear.git/commitdiff
My refactoring left two values uninitialized when running a
authorandy <andy>
Wed, 3 Dec 2003 21:26:03 +0000 (21:26 +0000)
committerandy <andy>
Wed, 3 Dec 2003 21:26:03 +0000 (21:26 +0000)
helicopter.  Melchior caught the bug.

src/FDM/YASim/Airplane.cpp

index bc06500c4b6d04b04db0788f3276161ca58943ca..09707c7f7bc6fa2fc25f638d643f1a4f2ff65fca 100644 (file)
@@ -1033,6 +1033,9 @@ void Airplane::solve()
 
 void Airplane::solveHelicopter()
 {
+    _solutionIterations = 0;
+    _failureMsg = 0;
+
     applyDragFactor(Math::pow(15.7/1000, 1/SOLVE_TWEAK));
     applyLiftRatio(Math::pow(104, 1/SOLVE_TWEAK));
     setupState(0,0, &_cruiseState);