From 5c836d7ae87c1c0766331726b0a4d2b60622b914 Mon Sep 17 00:00:00 2001 From: fredb Date: Sat, 17 Jan 2009 15:44:13 +0000 Subject: [PATCH] Csaba/Jester : initialize all per-engine and per-tank attributes ( follow-up ) --- src/Aircraft/controls.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Aircraft/controls.cxx b/src/Aircraft/controls.cxx index 9df598427..5eeadc1a1 100644 --- a/src/Aircraft/controls.cxx +++ b/src/Aircraft/controls.cxx @@ -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