]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/FlightPlan.cxx
Avoid compiler warning.
[flightgear.git] / src / Navaids / FlightPlan.cxx
index b5ff28b455ba7a588e8ad4365ed194c9b72bc805..5f0c84eab6227ef61701c53ed4def190ac1f0549 100644 (file)
@@ -319,7 +319,7 @@ FlightPlan::Leg* FlightPlan::currentLeg() const
 
 FlightPlan::Leg* FlightPlan::previousLeg() const
 {
-  if (_currentIndex == 0) {
+  if (_currentIndex <= 0) {
     return NULL;
   }