diff --git a/simgear/route/route.hxx b/simgear/route/route.hxx index 0b3701f1..75fac7f0 100644 --- a/simgear/route/route.hxx +++ b/simgear/route/route.hxx @@ -113,6 +113,10 @@ public: } } + inline int current_index() const { + return current_wp; + } + /** Increment the current waypoint pointer. */ inline void increment_current() { if ( current_wp < (int)route.size() - 1 ) {