]> git.mxchange.org Git - flightgear.git/blobdiff - src/Systems/electrical.cxx
Fix line endings
[flightgear.git] / src / Systems / electrical.cxx
index 73682045e64069fecfb5b3ea12cc5456c419ec46..a5e5de7f6f53da1af0c3cc463bf9d3f5ed67ece5 100644 (file)
@@ -24,7 +24,6 @@
 #include <simgear/structure/exception.hxx>
 #include <simgear/misc/sg_path.hxx>
 
-#include <Scripting/NasalSys.hxx>
 #include <Main/fg_props.hxx>
 #include <Main/globals.hxx>
 
@@ -110,6 +109,7 @@ float FGElectricalSupplier::apply_load( float amps, float dt ) {
         return available_amps - amps;
     } else if ( model == FG_EXTERNAL ) {
         // cout << "external amps = " << 0.0 << endl;
+        float available_amps = ideal_amps;
         return available_amps - amps;
     } else {
         SG_LOG( SG_ALL, SG_ALERT, "unknown supplier type" );