diff --git a/simgear/scene/tgdb/ReaderWriterSTG.cxx b/simgear/scene/tgdb/ReaderWriterSTG.cxx index c8940817..c942ee41 100644 --- a/simgear/scene/tgdb/ReaderWriterSTG.cxx +++ b/simgear/scene/tgdb/ReaderWriterSTG.cxx @@ -247,7 +247,7 @@ struct ReaderWriterSTG::_ModelBin { } else if (token == "OBJECT_SHARED" || token == "OBJECT_SHARED_AGL") { if (!onlyTerrain) { osg::ref_ptr opt; - opt = staticOptions(filePath, options); + opt = sharedOptions(filePath, options); if (SGPath(name).lower_extension() == "ac") opt->setInstantiateEffects(true); else