YASim: fix segmentation fault in yasim CLI tool
This commit is contained in:
parent
0f472efe9b
commit
dc63307965
1 changed files with 2 additions and 1 deletions
|
@ -664,7 +664,8 @@ void Airplane::compile()
|
||||||
gespan -= 2*gepos[1]; // cut away base (y-distance)
|
gespan -= 2*gepos[1]; // cut away base (y-distance)
|
||||||
gespan += 2*Math::abs(gepos[2]); // add (wrong) z-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?
|
// where does the hard coded factor 0.15 come from?
|
||||||
_model.setGroundEffect(gepos, gespan, 0.15f);
|
_model.setGroundEffect(gepos, gespan, 0.15f);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue