]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scripting/nasal-props.cxx
#591: night-time rendering issues, avoid negative color values
[flightgear.git] / src / Scripting / nasal-props.cxx
index 15a3016f3f31c9f1669625100132fe543d6c053a..2935114b9431ad6b7c7d094eef6487c8cd449a4e 100644 (file)
@@ -157,7 +157,7 @@ naRef makeVectorFromVec(naContext c, const T& vec)
     const int num_components
         = sizeof(vec.data()) / sizeof(typename T::value_type);
     naRef vector = naNewVector(c);
-    naVec_setsize(vector, num_components);
+    naVec_setsize(c, vector, num_components);
     for (int i = 0; i < num_components; ++i)
         naVec_set(vector, i, naNum(vec[i]));
     return vector;
@@ -174,7 +174,7 @@ static naRef f_getValue(naContext c, naRef me, int argc, naRef* args)
     {
         double dv = (*node)->getDoubleValue();
         if (osg::isNaN(dv)) {
-          SG_LOG(SG_GENERAL, SG_ALERT, "Nasal getValue: property " << (*node)->getPath() << " is NaN");
+          SG_LOG(SG_NASAL, SG_ALERT, "Nasal getValue: property " << (*node)->getPath() << " is NaN");
           return naNil();
         }