From 0dccfd7700a26adedff634107867d683493ace16 Mon Sep 17 00:00:00 2001 From: Sean McLeod Date: Tue, 8 Oct 2024 22:09:51 +0200 Subject: [PATCH] Update src/math/FGFunction.cpp Co-authored-by: Bertrand Coconnier --- src/math/FGFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/math/FGFunction.cpp b/src/math/FGFunction.cpp index 4925b82ae..d0ac0fa33 100644 --- a/src/math/FGFunction.cpp +++ b/src/math/FGFunction.cpp @@ -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(f, fdmex, element, Prefix, var)); + Parameters.push_back(new aFunc(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());