Uninitialized data problem. As it turns out, this never bit us because
the _chord member is only used uninitialized in circumstances where the result is thrown away. Still, bad practice. Found with valgrind.
This commit is contained in:
parent
11766afb6c
commit
2852f27bdc
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ Surface::Surface()
|
|||
_orient[3] = 0; _orient[4] = 1; _orient[5] = 0;
|
||||
_orient[6] = 0; _orient[7] = 0; _orient[8] = 1;
|
||||
|
||||
_chord = 0;
|
||||
_incidence = 0;
|
||||
_slatPos = _spoilerPos = _flapPos = 0;
|
||||
_slatDrag = _spoilerDrag = _flapDrag = 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue