diff --git a/src/FDM/JSBSim/FGFDMExec.cpp b/src/FDM/JSBSim/FGFDMExec.cpp index a6b5a7367..91aff1177 100644 --- a/src/FDM/JSBSim/FGFDMExec.cpp +++ b/src/FDM/JSBSim/FGFDMExec.cpp @@ -132,7 +132,7 @@ FGFDMExec::FGFDMExec(FGPropertyManager* root) : Root(root) Terminate = false; IdFDM = FDMctr; // The main (parent) JSBSim instance is always the "zeroth" - FDMctr++; // instance. "child" instances are loaded last. + // instance. "child" instances are loaded last. try { char* num = getenv("JSBSIM_DEBUG"); @@ -145,6 +145,9 @@ FGFDMExec::FGFDMExec(FGPropertyManager* root) : Root(root) if (master == 0) master = new FGPropertyManager; Root = master; + + // JSBSim Standalone, multiple childs are allowed + FDMctr++; } instance = Root->GetNode("/fdm/jsbsim",IdFDM,true);