]> git.mxchange.org Git - flightgear.git/blobdiff - src/Objects/matlib.cxx
Patch from Melchior Franz:
[flightgear.git] / src / Objects / matlib.cxx
index 11be5cf57312ceb6b91d314a70dfb72cfa3086a2..37128ef54d4859844a6ee7d73f308c2618e086be 100644 (file)
@@ -53,6 +53,7 @@
 
 #include "matlib.hxx"
 
+SG_USING_NAMESPACE(std);
 SG_USING_STD(string);
 
 
@@ -82,14 +83,14 @@ bool FGMaterialLib::load( const string& mpath ) {
   int nMaterials = materials.nChildren();
   for (int i = 0; i < nMaterials; i++) {
     const SGPropertyNode * node = materials.getChild(i);
-    if (string(node->getName()) == "material") {
+    if (!strcmp(node->getName(), "material")) {
       FGNewMat * m = new FGNewMat(node);
 
       vector<const SGPropertyNode *>names = node->getChildren("name");
       for (unsigned int j = 0; j < names.size(); j++) {
        string name = names[j]->getStringValue();
        m->ref();
-       std::cerr << "Material " << name << endl;
+       // cerr << "Material " << name << endl;
        matlib[name] = m;
        SG_LOG( SG_TERRAIN, SG_INFO, "  Loading material "
                << names[j]->getStringValue());