Don't create a new instance of /fdm/jsbsim upon reset
This commit is contained in:
parent
a9c47a7b78
commit
1ed6276f16
1 changed files with 4 additions and 1 deletions
|
@ -132,7 +132,7 @@ FGFDMExec::FGFDMExec(FGPropertyManager* root) : Root(root)
|
||||||
Terminate = false;
|
Terminate = false;
|
||||||
|
|
||||||
IdFDM = FDMctr; // The main (parent) JSBSim instance is always the "zeroth"
|
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 {
|
try {
|
||||||
char* num = getenv("JSBSIM_DEBUG");
|
char* num = getenv("JSBSIM_DEBUG");
|
||||||
|
@ -145,6 +145,9 @@ FGFDMExec::FGFDMExec(FGPropertyManager* root) : Root(root)
|
||||||
if (master == 0)
|
if (master == 0)
|
||||||
master = new FGPropertyManager;
|
master = new FGPropertyManager;
|
||||||
Root = master;
|
Root = master;
|
||||||
|
|
||||||
|
// JSBSim Standalone, multiple childs are allowed
|
||||||
|
FDMctr++;
|
||||||
}
|
}
|
||||||
|
|
||||||
instance = Root->GetNode("/fdm/jsbsim",IdFDM,true);
|
instance = Root->GetNode("/fdm/jsbsim",IdFDM,true);
|
||||||
|
|
Loading…
Reference in a new issue