Skip to content

Commit

Permalink
Update src/math/FGFunction.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Bertrand Coconnier <[email protected]>
  • Loading branch information
seanmcleod and bcoconni authored Oct 8, 2024
1 parent 91b08e5 commit 0dccfd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/math/FGFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ void FGFunction::Load(Element* el, FGPropertyValue* var, FGFDMExec* fdmex,
if (element->GetNumElements() == 1)
Parameters.push_back(make_MathFn(round, fdmex, element, Prefix, var));
else
Parameters.push_back(new aFunc<decltype(f), 2>(f, fdmex, element, Prefix, var));
Parameters.push_back(new aFunc<decltype(f), 1>(f, fdmex, element, Prefix, var, 2));
} else if (operation == "atan2") {
auto f = [](const decltype(Parameters)& p)->double {
return atan2(p[0]->GetValue(), p[1]->GetValue());
Expand Down

0 comments on commit 0dccfd7

Please sign in to comment.