1
0
Fork 0

Don't create a new instance of /fdm/jsbsim upon reset

This commit is contained in:
ehofman 2009-06-26 11:58:44 +00:00 committed by Tim Moore
parent a9c47a7b78
commit 1ed6276f16

View file

@ -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);