diff --git a/src/osgDB/Registry.cpp b/src/osgDB/Registry.cpp index a193f0f07..4492319e7 100644 --- a/src/osgDB/Registry.cpp +++ b/src/osgDB/Registry.cpp @@ -1040,7 +1040,7 @@ std::string Registry::findDataFileImplementation(const std::string& filename, co if(fileExists(simpleFileName)) { - OSG_DEBUG << "FindFileInPath(" << filename << "): returning " << filename << std::endl; + OSG_DEBUG << "FindFileInPath(" << filename << "): returning " << simpleFileName << std::endl; return simpleFileName; }