diff --git a/src/osgPlugins/osg/PagedLOD.cpp b/src/osgPlugins/osg/PagedLOD.cpp index 219691ced..564670fc5 100644 --- a/src/osgPlugins/osg/PagedLOD.cpp +++ b/src/osgPlugins/osg/PagedLOD.cpp @@ -29,7 +29,7 @@ bool PagedLOD_readLocalData(Object& obj, Input& fr) PagedLOD& lod = static_cast(obj); std::string path; - if (!fr.read("DatabasePath",path)) + if (fr.read("DatabasePath",path)) { lod.setDatabasePath(path); }