src/Main/fg_init.cxx: workaround for JSBSim failure because of reliance on FGReplay.
JSBSim fails on startup if some properties are not already created; some of these are created by FGReplay, and this is going wrong now that FGReplay is being run after the FDM. So have added a hack where we call FGReplay::init() as soone as FGReplay has been created.
This commit is contained in:
parent
df0f3e1b47
commit
0294db919f
1 changed files with 8 additions and 1 deletions
|
@ -1103,7 +1103,14 @@ void fgCreateSubsystems(bool duringReset) {
|
|||
////////////////////////////////////////////////////////////////////
|
||||
// Initialize the replay subsystem
|
||||
////////////////////////////////////////////////////////////////////
|
||||
globals->add_new_subsystem<FGReplay>(SGSubsystemMgr::POST_FDM);
|
||||
// We also call FGReplay::unit() method here, to work around a
|
||||
// problem where JSBSim appears to rely on FGReplay creating certain
|
||||
// properties before it is initialised. This caused problems when
|
||||
// FGReplay was changed to be POST_FDM.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
globals->add_new_subsystem<FGReplay>(SGSubsystemMgr::POST_FDM)
|
||||
->init(); // Special case.
|
||||
|
||||
globals->add_subsystem("history", new FGFlightHistory);
|
||||
|
||||
#ifdef ENABLE_AUDIO_SUPPORT
|
||||
|
|
Loading…
Reference in a new issue