From: mfranz Date: Thu, 18 Dec 2008 22:51:58 +0000 (+0000) Subject: James TURNER: make the index of the current waypoint available X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f4ec02a592c1feb31d48325c23a4593265407008;p=simgear.git James TURNER: make the index of the current waypoint available --- 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 ) {