1
0
Fork 0

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:
david 2002-06-28 19:06:23 +00:00
parent a26ea45c43
commit 0c4c182f1e

View file

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