X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FScripting%2Fnasal-props.cxx;h=6112144f2af2c0b4e4495942deb21261c24ccefe;hb=1d99401c0427a2a4faae651995736d569f8bbd5e;hp=1d445174eefd50af1eb2738ef780de1654274c28;hpb=79f7907a82a90fc1809fca7afef61cbe61166f08;p=flightgear.git diff --git a/src/Scripting/nasal-props.cxx b/src/Scripting/nasal-props.cxx index 1d445174e..6112144f2 100644 --- a/src/Scripting/nasal-props.cxx +++ b/src/Scripting/nasal-props.cxx @@ -185,7 +185,7 @@ static naRef f_getValue(naContext c, naRef me, int argc, naRef* args) case props::DOUBLE: { double dv = (*node)->getDoubleValue(); - if (osg::isNaN(dv)) { + if (SGMisc::isNaN(dv)) { SG_LOG(SG_NASAL, SG_ALERT, "Nasal getValue: property " << (*node)->getPath() << " is NaN"); return naNil(); } @@ -242,7 +242,7 @@ static naRef f_setValue(naContext c, naRef me, int argc, naRef* args) naRuntimeError(c, "props.setValue() with non-number"); double d = naNumValue(val).num; - if (osg::isNaN(d)) { + if (SGMisc::isNaN(d)) { naRuntimeError(c, "props.setValue() passed a NaN"); } @@ -282,7 +282,7 @@ static naRef f_setDoubleValue(naContext c, naRef me, int argc, naRef* args) if (naIsNil(r)) naRuntimeError(c, "props.setDoubleValue() with non-number"); - if (osg::isNaN(r.num)) { + if (SGMisc::isNaN(r.num)) { naRuntimeError(c, "props.setDoubleValue() passed a NaN"); }