]> git.mxchange.org Git - flightgear.git/commitdiff
Csaba/Jester : initialize all per-engine and per-tank attributes ( follow-up )
authorfredb <fredb>
Sat, 17 Jan 2009 15:44:13 +0000 (15:44 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 18 Jan 2009 22:10:52 +0000 (23:10 +0100)
src/Aircraft/controls.cxx

index 9df598427f5b3f592b55c9eeba1a0d20da5ed1ba..5eeadc1a1ddae27daae9eab6756cbb2a0b736ad1 100644 (file)
@@ -228,9 +228,10 @@ FGControls::init ()
         to_engine[tank] = 0;
         to_tank[tank] = 0;
     }
-    
-    // controls/fuel/tank[n]/pump[p]/
-    bool boost_pump[MAX_TANKS * MAX_BOOSTPUMPS];
+
+    for( int pump = 0; pump < MAX_TANKS * MAX_BOOSTPUMPS; pump++ ) {
+        boost_pump[pump] = false;
+    }
 
     brake_left = brake_right
         = copilot_brake_left = copilot_brake_right