diff --git a/src/Model/modelmgr.cxx b/src/Model/modelmgr.cxx index f70f8918a..ed3e2df49 100644 --- a/src/Model/modelmgr.cxx +++ b/src/Model/modelmgr.cxx @@ -166,10 +166,11 @@ FGModelMgr::unbind () namespace { -double testNan(double val) throw (sg_range_exception) +double testNan(double val) { if (SGMisc::isNaN(val)) throw sg_range_exception("value is nan"); + return val; }