1
0
Fork 0

YASim: fix segmentation fault in yasim CLI tool

This commit is contained in:
Henning Stahlke 2017-03-18 23:17:19 +01:00
parent 0f472efe9b
commit dc63307965

View file

@ -664,7 +664,8 @@ void Airplane::compile()
gespan -= 2*gepos[1]; // cut away base (y-distance)
gespan += 2*Math::abs(gepos[2]); // add (wrong) z-distance
}
baseN->getChild("wing", 0)->getNode("gnd-eff-span", true)->setFloatValue(gespan);
if (baseN != 0)
baseN->getChild("wing", 0)->getNode("gnd-eff-span", true)->setFloatValue(gespan);
// where does the hard coded factor 0.15 come from?
_model.setGroundEffect(gepos, gespan, 0.15f);
}