]> git.mxchange.org Git - flightgear.git/blobdiff - src/Objects/matlib.cxx
Patch from Melchior Franz:
[flightgear.git] / src / Objects / matlib.cxx
index d725bf9b7e653096f042229cefebb21da6754985..37128ef54d4859844a6ee7d73f308c2618e086be 100644 (file)
@@ -83,7 +83,7 @@ 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");