diff --git a/src/Aircraft/controls.cxx b/src/Aircraft/controls.cxx index 4fc9246bb..879662bc2 100644 --- a/src/Aircraft/controls.cxx +++ b/src/Aircraft/controls.cxx @@ -1713,7 +1713,7 @@ FGControls::set_ejection_seat( int which_seat, bool val ) eject[i] = val; } } else { - if ( (which_seat >= 0) && (which_seat <= MAX_EJECTION_SEATS) ) { + if ( (which_seat >= 0) && (which_seat < MAX_EJECTION_SEATS) ) { if ( eseat_status[which_seat] == SEAT_SAFED || eseat_status[which_seat] == SEAT_FAIL ) { @@ -1734,7 +1734,7 @@ FGControls::set_eseat_status( int which_seat, int val ) eseat_status[i] = val; } } else { - if ( (which_seat >=0) && (which_seat <= MAX_EJECTION_SEATS) ) { + if ( (which_seat >=0) && (which_seat < MAX_EJECTION_SEATS) ) { eseat_status[which_seat] = val; } } diff --git a/src/Instrumentation/dclgps.cxx b/src/Instrumentation/dclgps.cxx index 426f33835..c0d8d3466 100644 --- a/src/Instrumentation/dclgps.cxx +++ b/src/Instrumentation/dclgps.cxx @@ -482,7 +482,7 @@ void DCLGPS::update(double dt) { // TODO - avoid the hardwiring on nav[0] s = "Adj Nav Crs to "; } else { - string s = "GPS Course is "; + s = "GPS Course is "; } double d = GetMagHeadingFromTo(_fromWaypoint.lat, _fromWaypoint.lon, _activeWaypoint.lat, _activeWaypoint.lon); while(d < 0.0) d += 360.0; diff --git a/src/Navaids/navdb.cxx b/src/Navaids/navdb.cxx index 77a82c99b..4b01c3ad6 100644 --- a/src/Navaids/navdb.cxx +++ b/src/Navaids/navdb.cxx @@ -175,7 +175,7 @@ static PositionedID readNavFromStream(std::istream& aStream, arp.first, arp.second); } - if (range < 0.01) { + if (range < 1) { range = defaultNavRange(ident, type); }