diff --git a/src/Objects/newmat.cxx b/src/Objects/newmat.cxx index 7ac493dea..dab03e1eb 100644 --- a/src/Objects/newmat.cxx +++ b/src/Objects/newmat.cxx @@ -76,9 +76,10 @@ FGNewMat::FGNewMat (const SGPropertyNode * props) build_ssg_state(false); } -FGNewMat::FGNewMat (const string &texture_path) +FGNewMat::FGNewMat (const string &texpath) { init(); + texture_path = texpath; build_ssg_state(true); } diff --git a/src/Objects/newmat.hxx b/src/Objects/newmat.hxx index a1fb2e8ac..687b40d9e 100644 --- a/src/Objects/newmat.hxx +++ b/src/Objects/newmat.hxx @@ -85,7 +85,7 @@ public: * @param texture_path A string containing an absolute path * to a texture file (usually RGB). */ - FGNewMat (const string &texture_path); + FGNewMat (const string &texpath); /**