diff --git a/docs-mini/README.submodels b/docs-mini/README.submodels index 7fa204908..9f26ca531 100644 --- a/docs-mini/README.submodels +++ b/docs-mini/README.submodels @@ -58,7 +58,7 @@ left gun Models/Geometry/tracer.ac - systems/submodels/submodel[0]/trigger + ai/submodels/submodel[0]/trigger 2750.0 true 0.25 @@ -74,7 +74,7 @@ right gun Models/Geometry/tracer.ac - systems/submodels/submodel[0]/trigger + ai/submodels/submodel[0]/trigger 2750.0 true 0.25 diff --git a/src/AIModel/submodel.cxx b/src/AIModel/submodel.cxx index b24e44eb8..e11e0b7c8 100644 --- a/src/AIModel/submodel.cxx +++ b/src/AIModel/submodel.cxx @@ -36,7 +36,7 @@ void FGSubmodelMgr::init () { load(); - _serviceable_node = fgGetNode("/sim/systems/submodels/serviceable", true); + _serviceable_node = fgGetNode("/sim/submodels/serviceable", true); _user_lat_node = fgGetNode("/position/latitude-deg", true); _user_lon_node = fgGetNode("/position/longitude-deg", true); @@ -142,7 +142,7 @@ FGSubmodelMgr::load () { int i; - SGPropertyNode *path = fgGetNode("/sim/systems/submodels/path"); + SGPropertyNode *path = fgGetNode("/sim/submodels/path"); SGPropertyNode root; if (path) { @@ -193,7 +193,7 @@ FGSubmodelMgr::load () sm->contents = sm->contents_node->getDoubleValue(); - sm->prop = fgGetNode("/systems/submodels/submodel", i, true); + sm->prop = fgGetNode("/ai/submodels/submodel", i, true); sm->prop->tie("count", SGRawValuePointer(&(sm->count))); // sm->prop->tie("contents", SGRawValuePointer(&(sm->contents)));