From: andy Date: Wed, 1 May 2002 01:17:33 +0000 (+0000) Subject: Fix dumb typo. Very embarassing, but oddly not fatal... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7a9e2aba719aaccc41813943ce850c977760360f;p=flightgear.git Fix dumb typo. Very embarassing, but oddly not fatal... --- diff --git a/src/FDM/YASim/Model.cpp b/src/FDM/YASim/Model.cpp index 0edc17bf7..d2c1436ab 100644 --- a/src/FDM/YASim/Model.cpp +++ b/src/FDM/YASim/Model.cpp @@ -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,