diff --git a/src/FGFDMExec.cpp b/src/FGFDMExec.cpp index 347b83a64..d783c385a 100644 --- a/src/FGFDMExec.cpp +++ b/src/FGFDMExec.cpp @@ -168,8 +168,8 @@ FGFDMExec::FGFDMExec(FGPropertyManager* root, std::shared_ptr fdmc instance->Tie("simulation/reset", this, (iPMF)0, &FGFDMExec::ResetToInitialConditions); instance->Tie("simulation/disperse", this, &FGFDMExec::GetDisperse); instance->Tie("simulation/randomseed", this, (iPMF)&FGFDMExec::SRand, &FGFDMExec::SRand); - instance->Tie("simulation/terminate", (int *)&Terminate); - instance->Tie("simulation/pause", (int *)&holding); + instance->Tie("simulation/terminate", (bool *)&Terminate); + instance->Tie("simulation/pause", (bool *)&holding); instance->Tie("simulation/sim-time-sec", this, &FGFDMExec::GetSimTime); instance->Tie("simulation/dt", this, &FGFDMExec::GetDeltaT); instance->Tie("simulation/jsbsim-debug", this, &FGFDMExec::GetDebugLevel, &FGFDMExec::SetDebugLevel); diff --git a/src/FGFDMExec.h b/src/FGFDMExec.h index 715a59ed8..964ff722b 100644 --- a/src/FGFDMExec.h +++ b/src/FGFDMExec.h @@ -637,7 +637,7 @@ class JSBSIM_API FGFDMExec : public FGJSBBase unsigned int Frame; unsigned int IdFDM; int disperse; - unsigned short Terminate; + bool Terminate; double dT; double saved_dT; double sim_time;