diff --git a/src/math/FGFunction.cpp b/src/math/FGFunction.cpp index fd863fad9..4925b82ae 100644 --- a/src/math/FGFunction.cpp +++ b/src/math/FGFunction.cpp @@ -533,7 +533,7 @@ void FGFunction::Load(Element* el, FGPropertyValue* var, FGFDMExec* fdmex, return round((p[0]->GetValue() / multiple)) * multiple; }; if (element->GetNumElements() == 1) - Parameters.push_back(new aFunc(f, fdmex, element, Prefix, var)); + Parameters.push_back(make_MathFn(round, fdmex, element, Prefix, var)); else Parameters.push_back(new aFunc(f, fdmex, element, Prefix, var)); } else if (operation == "atan2") {