diff --git a/src/models/FGFCS.cpp b/src/models/FGFCS.cpp index 09d172642..f012d9058 100644 --- a/src/models/FGFCS.cpp +++ b/src/models/FGFCS.cpp @@ -319,7 +319,7 @@ void FGFCS::SetDspPos( int form , double pos ) void FGFCS::SetThrottleCmd(int engineNum, double setting) { - if (engineNum < (int)ThrottlePos.size()) { + if (engineNum < (int)ThrottleCmd.size()) { if (engineNum < 0) { for (unsigned int ctr=0; ctrGetLogger(), LogLevel::ERROR); log << "Cannot get throttle value for ALL engines" << endl; @@ -397,7 +397,7 @@ double FGFCS::GetThrottlePos(int engineNum) const void FGFCS::SetMixtureCmd(int engineNum, double setting) { - if (engineNum < (int)ThrottlePos.size()) { + if (engineNum < (int)MixtureCmd.size()) { if (engineNum < 0) { for (unsigned int ctr=0; ctr