Fixed an uninitialized variable reported by Frederic Bouvier; this
could cause the FDM occasionally to get caught in a very long loop.
This commit is contained in:
parent
a26ea45c43
commit
0c4c182f1e
1 changed files with 6 additions and 5 deletions
|
@ -51,15 +51,16 @@ inline void init_vec(FG_VECTOR_3 vec) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
FGInterface::FGInterface() {
|
FGInterface::FGInterface()
|
||||||
|
: remainder(0)
|
||||||
|
{
|
||||||
_setup();
|
_setup();
|
||||||
}
|
}
|
||||||
|
|
||||||
FGInterface::FGInterface( double dt ) {
|
FGInterface::FGInterface( double dt )
|
||||||
|
: remainder(0)
|
||||||
|
{
|
||||||
_setup();
|
_setup();
|
||||||
// delta_t = dt;
|
|
||||||
// remainder = elapsed = multi_loop = 0;
|
|
||||||
remainder = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
Loading…
Add table
Reference in a new issue