]> git.mxchange.org Git - flightgear.git/commitdiff
Andy Ross:
authorcurt <curt>
Thu, 13 Jun 2002 19:22:32 +0000 (19:22 +0000)
committercurt <curt>
Thu, 13 Jun 2002 19:22:32 +0000 (19:22 +0000)
Fixes for uninitialized variables.

src/Sound/fg_sound.cxx

index ad6bae072992f6b9645542f047a1070e722648d8..dc50f3fd71fc77addc97022c7b319de5771ac8cd 100644 (file)
@@ -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();