]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a property name that was missed in an earlier change.
authorcurt <curt>
Tue, 20 Apr 2004 22:54:44 +0000 (22:54 +0000)
committercurt <curt>
Tue, 20 Apr 2004 22:54:44 +0000 (22:54 +0000)
src/Systems/electrical.cxx

index b3109d5183e94ae760756e1855d469390bba2538..0a02f2c321ad70178e31e8ed36b9df0e6155a3f9 100644 (file)
@@ -364,8 +364,8 @@ void FGElectricalSystem::update (double dt) {
     // naming conventions in the electrical system config) ... FIXME:
     // make this more generic
     double amps = 0.0;
-    if ( fgGetBool("/controls/switches/master-bat") ) {
-        if ( fgGetBool("/controls/switches/master-alt") &&
+    if ( fgGetBool("/controls/engines/engine[0]/master-bat") ) {
+        if ( fgGetBool("/controls/engines/engine[0]/master-alt") &&
              fgGetDouble("/engines/engine[0]/rpm") > 800 )
         {
             amps += 40.0 * alt_norm;