Andy Ross:
Fixes for uninitialized variables.
This commit is contained in:
parent
6800231cfa
commit
1bb0cbf0a7
1 changed files with 2 additions and 2 deletions
|
@ -318,7 +318,7 @@ FGSound::update (double dt)
|
|||
double volume_offset = 0.0;
|
||||
|
||||
for(i = 0; i < max; i++) {
|
||||
double v;
|
||||
double v = 1.0;
|
||||
|
||||
if (_volume[i].prop)
|
||||
v = _volume[i].prop->getDoubleValue();
|
||||
|
@ -354,7 +354,7 @@ FGSound::update (double dt)
|
|||
double pitch_offset = 0.0;
|
||||
|
||||
for(i = 0; i < max; i++) {
|
||||
double p;
|
||||
double p = 1.0;
|
||||
|
||||
if (_pitch[i].prop)
|
||||
p = _pitch[i].prop->getDoubleValue();
|
||||
|
|
Loading…
Add table
Reference in a new issue