diff --git a/src/osgDB/ExternalFileWriter.cpp b/src/osgDB/ExternalFileWriter.cpp index c895caf6f..fab33b103 100644 --- a/src/osgDB/ExternalFileWriter.cpp +++ b/src/osgDB/ExternalFileWriter.cpp @@ -211,7 +211,7 @@ bool ExternalFileWriter::write(const osg::Object & obj, const osgDB::Options * o else written = true; // Add entry - _objects.insert(ObjectsSet::value_type(&obj, ObjectData(relativeDestinationPath, absoluteDestinationPath, written))).first; + _objects.insert(ObjectsSet::value_type(&obj, ObjectData(absoluteDestinationPath, relativeDestinationPath, written))).first; _searchMap.insert(SearchMap::value_type(pathHash(absoluteDestinationPath), &obj)); // Fill output strings