From: andy Date: Wed, 3 Dec 2003 21:26:03 +0000 (+0000) Subject: My refactoring left two values uninitialized when running a X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9d15561937ed60cd42198a38872d75c4edfeba28;p=flightgear.git My refactoring left two values uninitialized when running a helicopter. Melchior caught the bug. --- diff --git a/src/FDM/YASim/Airplane.cpp b/src/FDM/YASim/Airplane.cpp index bc06500c4..09707c7f7 100644 --- a/src/FDM/YASim/Airplane.cpp +++ b/src/FDM/YASim/Airplane.cpp @@ -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);