From 4e14316256e648400a73c978dab90197fb716b99 Mon Sep 17 00:00:00 2001
From: curt <curt>
Date: Tue, 20 Apr 2004 22:54:44 +0000
Subject: [PATCH] Fix a property name that was missed in an earlier change.

---
 src/Systems/electrical.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Systems/electrical.cxx b/src/Systems/electrical.cxx
index b3109d518..0a02f2c32 100644
--- a/src/Systems/electrical.cxx
+++ b/src/Systems/electrical.cxx
@@ -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;