]> git.mxchange.org Git - flightgear.git/commitdiff
Fix dumb typo. Very embarassing, but oddly not fatal...
authorandy <andy>
Wed, 1 May 2002 01:17:33 +0000 (01:17 +0000)
committerandy <andy>
Wed, 1 May 2002 01:17:33 +0000 (01:17 +0000)
src/FDM/YASim/Model.cpp

index 0edc17bf78cbcf78b2920f3eb3020d50322692c4..d2c1436ab7cc2ee90b390a1c342bf7fe71ba489c 100644 (file)
@@ -257,7 +257,7 @@ void Model::calcForces(State* s)
     // Account for ground effect by multiplying the vertical force
     // component by an amount linear with the fraction of the wingspan
     // above the ground.
-    float dist = ground[4] - Math::dot3(ground, _wingCenter);
+    float dist = ground[3] - Math::dot3(ground, _wingCenter);
     if(dist > 0 && dist < _groundEffectSpan) {
        float fz = Math::dot3(faero, ground);
        Math::mul3(fz * _groundEffect * dist/_groundEffectSpan,