]> git.mxchange.org Git - simgear.git/blobdiff - simgear/props/propertyObject.hxx
Fixed a crash: the singleton needs to be instantiated the first time SGCommandMgr...
[simgear.git] / simgear / props / propertyObject.hxx
index ffa4866bae4be40531e81f9adde371daef9f2093..9e6586594e379473d50dd3a3dd1fc66b52ad315a 100644 (file)
@@ -115,11 +115,9 @@ public:
   T operator=(const T& aValue)
   {
     SGPropertyNode* n = PropertyObjectBase::node(true);
-    if (!n) {
-      std::cout << "no node" << std::endl;
+    if( !n )
       return aValue;
-    }
-    
+
     n->setValue<T>(aValue);
     return aValue;
   }